问题
http://msdn.microsoft.com/en-us/library/aa446530.aspx
but there is no possibility to null date or to delete date from text field.
how to remove date from textfield or how to connect TextField with DateTimePicker
回答1:
To display blank you can set it as
DateTimePicker1.Format = DateTimePickerFormat.Custom;
DateTimePicker1.CustomFormat = "";
and then reset the format in ValueChanged
event to the desired format. The picker doesn't allow null values since it requires a valid DateTime object.
You may choose to have a custom control also as found here
来源:https://stackoverflow.com/questions/7554056/remove-date-from-datetimepicker-for-compact-framework