What is the ASCII code for delete key in keyboard. how to use it in key press event
Ascii code for delete Key in keyboard. how to use it in vb.net key press event
Vb.net - Key press eventHow to Use Delete Key In Key Press event
Page 1 of 1
3 Replies - 16532 Views - Last Post: 16 July 2010 - 10:21 AM
Replies To: Vb.net - Key press event
#2
Re: Vb.net - Key press event
Posted 16 July 2010 - 03:10 AM
You can use Select Case to handle the event.
Ascii values.
'key press event
Select Case Convert.ToInt32(e.KeyChar)
Case 48 to 57 ' numbers
Case 65 to 122 ' letters
Case Keys.Delete
e.Handled = True ' true means the keypress is suppressed
End Select
Ascii values.
#3
Re: Vb.net - Key press event
Posted 16 July 2010 - 06:57 AM
I believe that the ASCII value for the delete key is 127 in decimal form. Are you looking for the press key event to occur within a windows application (GUI app)?
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote



|