1 Replies - 1017 Views - Last Post: 17 January 2013 - 04:45 AM Rate Topic: -----

#1 thanzeem7  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 35
  • Joined: 14-January 13

How can i make a ReadOnly DateTime Picker in VB.NET?

Posted 17 January 2013 - 03:20 AM

Can anyone know how to make a Readonly Datetime Picker in VB.NET??
Is This A Good Question/Topic? 0
  • +

Replies To: How can i make a ReadOnly DateTime Picker in VB.NET?

#2 andrewsw  Icon User is offline

  • Fire giant boob nipple gun!
  • member icon

Reputation: 3253
  • View blog
  • Posts: 10,908
  • Joined: 12-December 12

Re: How can i make a ReadOnly DateTime Picker in VB.NET?

Posted 17 January 2013 - 04:45 AM

The nearest equivalent would be to continually reset the date back to it's default/original value:

    Private Sub DateTimePicker1_ValueChanged(sender As Object, e As EventArgs) Handles DateTimePicker1.ValueChanged
        DateTimePicker1.Value = DateTime.Now()      'or whichever date you decide
    End Sub


The more sensible option (of course) is not to use a DateTimePicker.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1