DateTime picker optional field

  • Thread starter Thread starter George
  • Start date Start date
G

George

The DateTime picker is an optional field on my form and
it should not contain a default value. Is there a way to
do this? I tried setting the Text property to "", but
that does not work.

Thanks in advance,
George
 
To my knowleder, there is no way to show a DateTimePicker control with no date in it; however, there is a property (ShowCheckBox) which you can set to True. When true, a small checkbox shows on the left side of the date area. This check box can be "unchecked" programatically to set the "No value" for the control. Note that some date will still appear in the control but it will be grayed out to indicate no value
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top