F frazer May 5, 2004 #1 how do i ensure the user always enters alphanumeric characters in my text box. no spaces or punctuations?
how do i ensure the user always enters alphanumeric characters in my text box. no spaces or punctuations?
H Hirantha May 5, 2004 #2 try regular expressions. "[a-zA-Z0-9]" would match alphanumeric characters.
I Ignacio Machin \( .NET/ C# MVP \) May 5, 2004 #3 Hi, You can use the KeyPress event of the textbox and set the Handled property of the event args ( do not remember the exact type ) Cheers,
Hi, You can use the KeyPress event of the textbox and set the Handled property of the event args ( do not remember the exact type ) Cheers,