How to check This Whole Number ?
-
I want User put something like this .... xx123xx here x is Alphabetic word Id has to be 7 char. first 2 char is Alphabetic Last 2 char is alphabetic Middle 3 to 5 char should be number.... Is tha any one can help me.. -Thanks
Peter
-
I want User put something like this .... xx123xx here x is Alphabetic word Id has to be 7 char. first 2 char is Alphabetic Last 2 char is alphabetic Middle 3 to 5 char should be number.... Is tha any one can help me.. -Thanks
Peter
What exactly to u need? To Validate that the string is in your Format? if so just : use the maskedTextBox and define the MAsk Property to : aa000aa define the MaskInputReject Event it will check the format itself (in the event give a message like "Wrong Format" in a MessageBox)
Have Fun Never forget it
-
What exactly to u need? To Validate that the string is in your Format? if so just : use the maskedTextBox and define the MAsk Property to : aa000aa define the MaskInputReject Event it will check the format itself (in the event give a message like "Wrong Format" in a MessageBox)
Have Fun Never forget it
-
I find maskedinputs quite buggy imo i think the more elegant solution would be regular expressions
A pessimist sees the difficulty in every opportunity; an optimist sees the opportunity in every difficulty I am a Optimist
-
gspiteri wrote:
I find maskedinputs quite buggy
Welcome to VS C#, there a Lot of bugs i did what u Thought about it's working fine but i guess u have some other things in between Hope i've been helpfull :):)
Have Fun Never forget it
-
I want User put something like this .... xx123xx here x is Alphabetic word Id has to be 7 char. first 2 char is Alphabetic Last 2 char is alphabetic Middle 3 to 5 char should be number.... Is tha any one can help me.. -Thanks
Peter
Use Regex for this.You can get many example in c#, javascript just search in google.
Sarvesh Upadhyay Senior Software Engineer Birlasoft India Ltd. Microsoft Certified Professional Developer in Dotnet 2.0 Enterprise Application