Masked Text Box Help

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Aug 2006
Posts: 2
Reputation: Toddrick33 is an unknown quantity at this point 
Solved Threads: 0
Toddrick33 Toddrick33 is offline Offline
Newbie Poster

Masked Text Box Help

 
0
  #1
Aug 2nd, 2006
Since A, L and C are used as masks in a masked text box, I was just wondering if there was a way to filter them out.

For example, say I want to number Licenses, like this:

LIC-06-###-####

Since L and C are masked characters, it will not allow me to keep it, instead it will look something like this _I_-06-000-001, which is kind of irritating. I was wondering if there was a way around this?


Thanks!
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 483
Reputation: campkev is an unknown quantity at this point 
Solved Threads: 19
campkev campkev is offline Offline
Posting Pro in Training

Re: Masked Text Box Help

 
0
  #2
Aug 7th, 2006
are all your licenses going to start with "LIC-" if so why not just put that part in a label outside the text box and only put the variable part of the license in the text box. Like when you see a key that is ###-OEM-###-#### it wil have textbox-label(OEM)-textbox
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 2
Reputation: Toddrick33 is an unknown quantity at this point 
Solved Threads: 0
Toddrick33 Toddrick33 is offline Offline
Newbie Poster

Re: Masked Text Box Help

 
0
  #3
Aug 8th, 2006
Thanks, but I also found that you can use escape characters, so having a mask of \LI\C-###- does the trick!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C# Forum
Thread Tools Search this Thread



Tag cloud for C#
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC