Hi All.
In my detail form I would like to diaplay datetimepicker field as blank in case when user open new record. Is it possible to display blank datetimepicker? How it to do?
Thanls.
Printable View
Hi All.
In my detail form I would like to diaplay datetimepicker field as blank in case when user open new record. Is it possible to display blank datetimepicker? How it to do?
Thanls.
I would love for someone to prove me wrong, but it does not look like this is possible. You would have to create your own DateTimePicker from scratch inheriting from Control. It seems all the methods it uses to paint the actual text that you see are declared Private meaning we can't override any of them to decide when they perform.
It's possible but it's a bit fiddly. You need to set the Format to Custom and then the CustomFormat to " ", i.e. a single space character. You then need to handle the ValueChanged event and set the CustomFormat or the Format to some other value so that the Value gets displayed.