Disabling keystroke

DavyEFC

Well-known member
Joined
Dec 17, 2010
Messages
51
Programming Experience
5-10
If i want to disable a keystroke I can use:

VB.NET:
If e.KeyCode = xx Then e.Handled = True

in the keydown event, but what if the key i want to disable needs a shift press first, such as the pipe char (124)? How do i handle that?
 
You should be able to read it as Keys.OemPipe.
 
Back
Top