how to clear datetimepicker

tcl4p

Well-known member
Joined
Feb 29, 2008
Messages
48
Programming Experience
1-3
Does anyone know how to clear the datetimepicker control?

Thanks,
Tom
 
The DTP displays the selected Date, which is not a nullable type, ie a Date always has a value, so it is not possible to "clear" it. What you can do is to enable the checkbox (ShowCheckBox) and only use the DTP value if it is Checked.

Thread moved to Windows Forms forum, please post in most appropriate forum.
 
Back
Top