|
-
Jul 26th, 2009, 11:28 AM
#1
Thread Starter
Addicted Member
display datetimepicker as blank
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.
-
Jul 26th, 2009, 02:57 PM
#2
Re: display datetimepicker as blank
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.
-
Jul 26th, 2009, 06:58 PM
#3
Re: display datetimepicker as blank
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|