Can anyone know how to make a Readonly Datetime Picker in VB.NET??
1 Replies - 235 Views - Last Post: 17 January 2013 - 04:45 AM
#1
How can i make a ReadOnly DateTime Picker in VB.NET?
Posted 17 January 2013 - 03:20 AM
Replies To: How can i make a ReadOnly DateTime Picker in VB.NET?
#2
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:
The more sensible option (of course) is not to use a DateTimePicker.
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.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|