Raj <Ra*@discussions.microsoft.comwrote:
How to avoid entering special character in a text box?
It might be a good idea to post in a more relevant newsgroup,
such as
microsoft.public.dotnet.framework.windowsforms.con trols
You should also consider browsing the online docs before
posting.
If you find the TextBox in the Class Library reference,
and click on TextBox Events, you will see a list of events
supported by the control.
You might want to take a look at the KeyPress event.
The example there might help you.
HTH/Ole N.