Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

KeyPress Event and VB KeyCodes

Status
Not open for further replies.

TMoney216

Programmer
Mar 1, 2002
11
0
0
US
Hi All and thanks for the help in advance.

I was just wondering why, in my datagrid's KeyPress event, doesn't it detect the use of the "delete" key? It allows the use of it...but doesn't pick it up as the keyascii value passed into it.........when I hit delete and then a valid value..it give me a non nullable error, then picks up the valid keyasii character and continues onward....
 
KeyPress doesn't recognize a number of keystrokes,

Use KeyDown and KeyUp event procedures to handle any keystroke not recognized by KeyPress, such as function keys, editing keys, navigation keys, and any combinations of these with keyboard modifiers Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top