943,773 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 6798
  • C# RSS
Aug 2nd, 2006
0

Masked Text Box Help

Expand Post »
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!
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Toddrick33 is offline Offline
2 posts
since Aug 2006
Aug 7th, 2006
0

Re: Masked Text Box Help

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
Reputation Points: 14
Solved Threads: 19
Posting Pro in Training
campkev is offline Offline
484 posts
since Jul 2005
Aug 8th, 2006
0

Re: Masked Text Box Help

Thanks, but I also found that you can use escape characters, so having a mask of \LI\C-###- does the trick!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Toddrick33 is offline Offline
2 posts
since Aug 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: Avoid writing to disk?
Next Thread in C# Forum Timeline: C# vs VB 2005





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC