Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want in a datetimepicker control in a c# windows application, with the format dd/MM/yyyy.
I want, when user types dd cursor and focus automatically move to month part and so on month part.
When user typed 4 digit as year cursor and focus return back to day part.

Note I make my date timepicker as custom control
Posted
Updated 28-May-12 2:19am
v3
Comments
Sunasara Imdadhusen 28-May-12 7:55am    
Please start coding and then let us know if you are facing any problem!!
nagiub2007 28-May-12 7:58am    
no code yet i want automatically move cursor between datetimepicker parts
Keith Barrow 28-May-12 8:23am    
Well that doesn't make any sense, you said "Note I make my date timepicker as custom control" so you must at least have the code for your date timepicker.
As for your functionality, I think it will be unsuable (though it isn't exactly clear what you want), lets say a user types 2011, how are you going to tell if they mean the year, or [accidently] type 20 (a day), and then correct it to 11. It's technically possible, but I doubt it will be usuable.
Please can you clarify your question, and let us know what you have done so far. Just asking for something without showing effort on your part isn't going to get you very far.
nagiub2007 28-May-12 8:30am    
thanks 4 reply
my dear in datetimepicker control the default to move between day and month and year by right and left keyboard buttons
my datetimepicker control it's format is("hh/MM/yyyy")
i wanna when user type in it's day and finished it means second digit in day
cursor skip (/) and move automatic to month field and so on
sorry 4 my language

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900