DateTimePicker Problem

haseebhm

Member
Joined
Jan 12, 2009
Messages
9
Programming Experience
3-5
Hello I have DateTimePicker on many of my forms. I m new to vb.net. I want to allow the user to enter the date through the keyboard without opening the drop-down calendar.The date format is (dd/MM/yyyy). eg: user enters "12" the keyboard cursor should automatically go to the "MM" part of the date and then user enters "11" then the cursor should go to "yyyy" part automatically.

Please suggest how to do that.
 
The existing DTP allows the user to enter text, I think, but if it does not do what you need then you'll have to create your own.

You could have a "pro user" option in your program which uses a MaskedTextBox instead of a DateTimePicker. Any users who find your interface slow or awkward in "newbie"mode, could swap the date time picker for the masked text box and type all their dates
 
Back
Top