Click here to Skip to main content
11,790,021 members (47,448 online)
Rate this: bad
Please Sign up or sign in to vote.
Plz help me how to validate a masked textbox for an ip address like this ###.###.###.###? how can i enter without having to enter it as
Posted 31-Jan-13 8:02am
JemiM at 31-Jan-13 14:07pm
please put a nice heading for the question.
Sergey Alexandrovich Kryukov at 31-Jan-13 14:09pm
Also, Tag your UI library or application type. And, no matter how you do it, you always need to enter or select those integers, isn't that obvious?
Tag the UI you use; and you will get help almost immediately.
Dave Kreskowiak at 31-Jan-13 20:59pm
You neeeeeeeed to GROW UP and stop using childish language and txtspeak. You've got full keyboard in front of you. Use it! If you want people to take you seriously, you'll do this.

1 solution

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

Solution 1

I wouldn't use a masked edit box for this - they are really only usefull for fixed input format, not flexible ones as you need.
Instead, I would use a standard TextBox and a regex to validate it:
Sergey Alexandrovich Kryukov at 31-Jan-13 14:10pm
It's only OP thinks that validation is needed, but really it's about a masked text box or other input method...

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

  Print Answers RSS
0 OriginalGriff 1,029
1 Maciej Los 790
2 KrunalRohit 686
3 CPallini 606
4 Richard MacCutchan 460

Advertise | Privacy | Mobile
Web03 | 2.8.1509028.1 | Last Updated 31 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