yuffie
Jan 24, 2008, 07:41 AM
Hi, I'm having a problem with validating characters in a textbox on the event of key pressed.
I need to validate that the user's input is not % ' " ? or !
and im having a problem validating password type textbox too.
the methods i tried are by using e.keychar and Asc(e.keychar)
none of them are working. if i used that to validate character '
it's working, but it's not working for other characters. i guess it's because for other characters, you have to press Shift + something to get it.
does anyone know how to do this?
oh, and does anyone know how to display " in vb2005? Cause the string in vb 2005 is marked by ". so when i type " it'll just end the string. Thanks a lot :)
I need to validate that the user's input is not % ' " ? or !
and im having a problem validating password type textbox too.
the methods i tried are by using e.keychar and Asc(e.keychar)
none of them are working. if i used that to validate character '
it's working, but it's not working for other characters. i guess it's because for other characters, you have to press Shift + something to get it.
does anyone know how to do this?
oh, and does anyone know how to display " in vb2005? Cause the string in vb 2005 is marked by ". so when i type " it'll just end the string. Thanks a lot :)