Saturday, 17 August 2013

How to filter textbox input to only contain certain characters

How to filter textbox input to only contain certain characters

I want to filter the input on a textbox so that if the user enters
anything but numbers, letters, or periods a msgbox opens telling the
error. I don't want the filter to be applied every time a key is pressed
but only once the user is done.
For example if the user enters ("example input").ThatGuyJay and presses
enter then a msgbox will come up and tell the user not to use anything but
letters, numbers, or periods.
Hope that makes sense.

No comments:

Post a Comment