Re: Using Null in DateTimePickers

From: Tom Porterfield (tpporter_at_mvps.org)
Date: 08/27/04


Date: Fri, 27 Aug 2004 09:26:35 -0400

John Smith wrote:
> Hey folks,
>
> I have a DateTimePicker control on my Windows Form. Whenever I either:
> a) Don't give it a value
> b) Set it's value to Null
> c) Set it's value to ""
> It makes the date today's date.
>
> I need it to be empty though. How do I make it empty? It represents a
> field in my database which legitimately can be null and so I can't show it
> as todays date.
>
> Thanks a lot for the help!

As Nicholas states, the DateTimePicker from MS does not support null.
There are third party controls that do. Infragistics
(www.infragistics.com) NetAdvantage Suite includes a calendar control
that supports null.

-- 
Tom Porterfield


Relevant Pages

  • Re: Calendar control in compact framework 1.1
    ... better datetimepicker control then this? ... How has your experience been with this Smart Device Framework ... include this in my compact framework project and while deployment just ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: REMOVE DATE TIME PICKER FROM OL FORM
    ... >I created a form using the DateTimePicker Control to write in a field. ... > in designmode i removed all fields but I cannot see the dtp1 to delette ...
    (microsoft.public.office.developer.outlook.forms)
  • Re: REMOVE DATE TIME PICKER FROM OL FORM
    ... >I created a form using the DateTimePicker Control to write in a field. ... > in designmode i removed all fields but I cannot see the dtp1 to delette ...
    (microsoft.public.office.developer.outlook.vba)
  • Re: REMOVE DATE TIME PICKER FROM OL FORM
    ... >I created a form using the DateTimePicker Control to write in a field. ... > in designmode i removed all fields but I cannot see the dtp1 to delette ...
    (microsoft.public.de.outlook)
  • Re: REMOVE DATE TIME PICKER FROM OL FORM
    ... "Michael Bauer" wrote in message ... >> I created a form using the DateTimePicker Control to write in a field. ...
    (microsoft.public.outlook.printing)