Ask Experts Questions for FREE Help!
Answer   ||    Advanced Search

Ask your question or search...
International Sites: Nederlandse experts vragen
User Name 
Password 
Join   Forgot password? 

Home > Computers & Technology > Programming > Compiled Languages > Visual Basic   »   validate characters such as % ' "

Question
 
 
#1  
Old Jan 24, 2008, 06:41 AM
yuffie
New Member
yuffie is offline
 
Join Date: Dec 2007
Posts: 12
yuffie See this member's comment history on his/her Profile page.
validate characters such as % ' "

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. thanx a lot

Reply With Quote
 
     

Answers
 
 
Old Jan 24, 2008, 07:12 AM   #2  
New Member
yuffie is offline
 
Join Date: Dec 2007
Posts: 12
yuffie See this member's comment history on his/her Profile page.
opps.. turned out i used the wrong connector for the If clause..
i was using And, where it was supposed to be Or
hehehe
  Reply With Quote
 
     

Your Answer
Email me when someone replies to my answer
Join Login



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Ask your question or search...



Similar Threads
Fantasy Movie, elflike characters, character name "Kira"
(4 replies)
Can I validate a debt after being served with a lawsuit from a credit card company?
(5 replies)
Validate the total tax for employer in NJ
(1 replies)
How to validate a new method ?
(0 replies)
validate a form
(2 replies)

Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page
Search this Thread

Advanced Search

Bookmarks





Copyright ©2003 - 2009, Ask Me Help Desk.
All times are GMT -8. The time now is 03:29 PM.