Capturing percent with KeyEventArgs

pwoodsvt

New member
Joined
Feb 13, 2007
Messages
1
Programming Experience
5-10
Hello. I was wondering if anyone could tell me how I can tell if a percent sign was entered using a System.Windows.Forms.KeyEventArgs. The e.keyData does not include the percent. I also need to capture every keystroke after that. Unfortunately, I can not use the KeyPressEventArgs without redesigning our entire form base class.

Thanks in advance.
 
percent can't be made by pressing one key, you have to press and hold Shift key and press '5' to that. Key down ex code:
VB.NET:
If e.Shift = True And e.KeyCode = Keys.D5 Then MsgBox("percent")
 
Back
Top