Resolved Analyze Characters being typed into a Textbox

jcardana

Old to VB6, New to VB.NET
Joined
Oct 26, 2015
Messages
72
Location
Rio Rancho, NM
Programming Experience
Beginner
I'm working with characters provided by an organ. I need to limit the user to entering only the following characters...
0-9 a-z A-Z , ; ' ! @ # $ % ^ & ( ) + - = [ ] { } ` ~ ¥

...and prevent these, along with everything else...
/ : * ? " < > | (These can't be used in a filename)

I've been reading about the e.keycode and Keys. but this isn't helping as it's only referring to KEYS.
I was looking at the KeyValue and KeyData as well, but nothing I could use to determine 'a' from 'A' or '1' from '!'

Is there something in the TextBox properties or methods that allow me to check the typed character before it's actually sent to the TextBox?

Thanks for your time and efforts,
Joe
 
By not answering... you forced me to keep digging and figure it out.
THANK YOU for not helping ;)

I'm not being s#!tty, I really mean it, thanks!
 
What did you figure out?
 
Indeed, please provide your solution, such that it may help others with similar issues. For the record, your first post was made at 4:29AM in my timezone. There's every chance that people will answer you but possibly not right away.
 
Instead of the KeyDown event using the KeyCode, I used the KeyPress event with the KeyChar.
 
Back
Top