Hi Jacek,
this will be a little problem, because
DateTime isn't a nullable typ. A workarround
is to develop an own user control. On this you
should first place a DateTimePicker control
and after that you add a TextBox control
and place it over the input field of the
DateTimePicker. So every time you wouldn't
show a DateTime value within the DateTimerPicker
you show the empty TextBox and set the DateTime
value of the DateTimePicker to a value that
show that there's no DateTime. If the user
then choose a DateTime you hide the TextBox
and show the DateTimePicker.
Cheers
Lars Behrmann
_________________
Nothing is impossible. UML is the key for all your problems.
AODL - Make your .net apps OpenOffice ready
http://aodl.sourceforge.net/
Jacek Jurkowski schrieb:
[color=blue]
> ... the minimum date of DateTimePicker is 1753-01-01.
> How to make DateTime to do not show nothing in its
> text if this date is the value? I have a form with a field
> LastLogonDate. If user hasn't logon yet this date should
> be empty but when binding a property to the DateTimePicker value it always
> shows value parsed
> prom property which is 1753-01-01. How to make
> an "empty" or "not set" date bindable to a value property
> of DateTimePicker?[/color]