How to make that user can only input hour format in text box for example HH:MM?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Depending on strictness of requirements you may want to create a specific behaviour that will be attached to
KeyDownevent and disable keys other than currently accepted given format and current text input position in (HH:MM), you could even think of different ways to guarantee automatic:input by your behaviour if you want to be limited by textbox control for time input.you can get some inspiration here I think
numeric only behaviour example