Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
How do I fix the input allowed into an input box?
 
Basically I want the user to be only allowed to type in numberical values (no spaces or symbols) also I want the inputbox to appear in this structure
 
02:10:20
 
And I don't want the user to be able to delete the colons.
 
How do I do this?
Posted 28-Jan-13 3:12am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I'd use a DateTimePicker, not a TextBox.
  Permalink  
Comments
Andrew Smith at 28-Jan-13 9:29am
   
I'm using an inputbox. Do you know how I can accomplish what I have outlined above?
PIEBALDconsult at 28-Jan-13 9:32am
   
Heck no; I wouldn't try. Use the right tool for the right job.
Sergey Alexandrovich Kryukov at 28-Jan-13 12:01pm
   
Totally agree. Doing it with a text box is just silly. My 5. —SA

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 375
1 Abhinav S 333
2 OriginalGriff 330
3 sanket saxena 305
4 CPallini 175
0 Sergey Alexandrovich Kryukov 8,497
1 OriginalGriff 4,850
2 Peter Leow 3,839
3 Maciej Los 3,515
4 Er. Puneet Goel 3,107


Advertise | Privacy | Mobile
Web01 | 2.8.140415.2 | Last Updated 28 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid