Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Escape Key
Message
From
12/06/2001 12:25:06
 
 
To
12/06/2001 09:18:23
General information
Forum:
Visual Basic
Category:
Other
Title:
Miscellaneous
Thread ID:
00518328
Message ID:
00518468
Views:
16
Something has to catch the keystroke. You could create a sub or function that takes an arguement of a key and evaluates it that way. For example:

Private Sub Form_KeyPress(KeyAscii As Integer)
If IsEscapeKey(KeyAscii) Then
MsgBox "escape key"
Else
MsgBox "not escape Key"
End If
End Sub

Public Function IsEscapeKey(MyKey As Integer) As Boolean
If MyKey = vbKeyEscape Then
IsEscapeKey = True
Else
IsEscapeKey = False
End If
End Function
Previous
Reply
Map
View

Click here to load this message in the networking platform