DateTimePicker - setting the default month on DropDown
Posted on 2004-10-06
WinForms application in VB.Net...
I have a DateTimePicker in my application. When the user drops down the dtp to reveal the calendar, I want to somehow set the default calendar month to the current month - irrespective of the current value of the dtp.
I want to do this without actually changing the dtp's value. In other words, after dropping down the dtp, if the user decides not to change the date and clicks off the dtp without selecting another date then I want the date to remain the same as before the dtp was dropped down.
I hope that makes sense.