|
-
Jan 25th, 2000, 02:59 AM
#1
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.
-
Jan 25th, 2000, 12:00 PM
#2
Lively Member
Hi been able to disable all the F key in my acccess application but having trouble with the Alt F2 key. does anyone know how to disable this. The user could cause some major damage if this is pressed. As always thanks for your help.
Thanks,
Scott
-
Jan 26th, 2000, 11:34 PM
#3
Lively Member
Thanks for the speedy reply but unfortunallty the code doesnt work. what seemes to happen is access picks up the key before the code kicks in. Im going to keep seaching for an answer. Its one of those things I know it can be done, just dont know how 
Again Thanks,
Scott
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
|