How to restrict DateTimePicker
to select the time only? I don't know how to disable calendar control which drops when you press the button at the right of DateTimePicker
.
How to restrict DateTimePicker
to select the time only? I don't know how to disable calendar control which drops when you press the button at the right of DateTimePicker
.
A snippet out of the MSDN:
'The following code sample shows how to create a DateTimePicker that enables users to choose a time only.'
timePicker = new DateTimePicker();
timePicker.Format = DateTimePickerFormat.Time;
timePicker.ShowUpDown = true;