开发者

remove date from DateTimePicker for Compact Framework

开发者 https://www.devze.com 2023-04-08 06:41 出处:网络
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技巧

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

精彩评论

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

关注公众号