Hello all, after searching for around a half hour or so, I found that the regularexpression API could do what I need.
Basically, I needed to only allow letters, numbers, and symbols in my textbox. The problem was, I could stick alt codes in there, even with a keycode case check.
So, I found regularexpressions, and it appears to do what I need.
The problem is, I only have an expression working for letters and numbers, and I need symbols in it too.
Here is the one I tried to use that doesn't really work...
If Not Regex.IsMatch(TextBox1.Text, "[^A-Za-z0-9]!@#$%^&*()_+=-{}':;./>?<,") Then
So, my request/question is, can someone enlighten me on the correct format to allow normal symbols, letters, and numbers, in this expression?
To be more precise, I want these symbols to be checked via the expression, along with lowercase and capital letters, and numbers 0->9.
<>?:"{}|+_)(*&^%$#@!~`-=\][';/.,
Thanks a lot!
Basically, I needed to only allow letters, numbers, and symbols in my textbox. The problem was, I could stick alt codes in there, even with a keycode case check.
So, I found regularexpressions, and it appears to do what I need.
The problem is, I only have an expression working for letters and numbers, and I need symbols in it too.
Here is the one I tried to use that doesn't really work...
If Not Regex.IsMatch(TextBox1.Text, "[^A-Za-z0-9]!@#$%^&*()_+=-{}':;./>?<,") Then
So, my request/question is, can someone enlighten me on the correct format to allow normal symbols, letters, and numbers, in this expression?
To be more precise, I want these symbols to be checked via the expression, along with lowercase and capital letters, and numbers 0->9.
<>?:"{}|+_)(*&^%$#@!~`-=\][';/.,
Thanks a lot!