M
mahesh.nimbalkar
Hi,
I have DateTimePicker control on a winform. When user selects a date
in that control, I am getting proper value using DateTimePicker.Value.
But I want to know in case user does not select any date and closes
DateTimePicker control by pressing escape key. Here in this case also
I am getting today's date even if user did not select any date in that
control.
I should get null or something else that will let me know that user
did not select anything and closed the DateTimePicker by pressing
escape key.
Any idea how to do that?
Thanks!
I have DateTimePicker control on a winform. When user selects a date
in that control, I am getting proper value using DateTimePicker.Value.
But I want to know in case user does not select any date and closes
DateTimePicker control by pressing escape key. Here in this case also
I am getting today's date even if user did not select any date in that
control.
I should get null or something else that will let me know that user
did not select anything and closed the DateTimePicker by pressing
escape key.
Any idea how to do that?
Thanks!