|
-
Jan 25th, 2000, 02:59 AM
#2
Thread Starter
New Member
here u go
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyF2 Then
If Shift = 4 Then
KeyCode = 0 'ie do nothing
End If
Else
Exit Sub
End If
End Sub
the only other way of doing it would be to use subclassing (see www.vbaccelerator.com)
and intercept the windows message at a lower level but thats quite hard.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|