开发者

remove date from DateTimePicker for Compact Framework

http://msdn.microsoft.com/en-us/library/aa446530.aspx

but there is no possibility to null date or to delete date from text field.开发者_JAVA技巧

how to remove date from textfield or how to connect TextField with DateTimePicker


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜