Click here to Skip to main content
11,802,389 members (30,778 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: VB string VB.NET InputLanguage , +
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


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
Please Sign up or sign in to vote.

Solution 1

I'd use a DateTimePicker, not a TextBox.
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.

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

  Print Answers RSS
0 OriginalGriff 475
1 KrunalRohit 366
2 F-ES Sitecore 295
3 Afzaal Ahmad Zeeshan 230
4 CHill60 220
0 OriginalGriff 2,950
1 Maciej Los 1,910
2 KrunalRohit 1,862
3 CPallini 1,645
4 Richard MacCutchan 1,157

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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100