Click here to Skip to main content
15,899,026 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I am trying to enter a set of characters in text box in mfc dialog application.

In this text box, the condition is I should enter '*' only once. I can use '*' any where in text box. And if I use the same character('*') again, that entry should be disabled. That character should be disabled once the character is used.( keyboard button should not work ).This should work only after I use this character('*') for once.

Hoping for a speed reply

Thanks in advance
Posted
Updated 29-Jul-13 23:27pm
v2
Comments
ridoy 29-Jul-13 13:28pm    
you can use Regex for that,alternately also can use textchanged event of textbox.But i prefer the first one must.

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900