I am trying to prevent users from entering a character into a text box. I remember doing something like this in a beginning VB .net class a while ago and it was only one line of code in the textchanged (?) event of the textbox. From what I remember, it was a simple command to ignore the key that was pressed if it did not fit a certain criteria. Does anyone know a simple way to do this.
