View Full Version : Functionkey F1


sven2
06-16-2008, 10:21 PM
Hello,

is there an easy way to disable the F1 key so there is no possibility to enter the helpfile?

Thanks in advance,
Sven.

khawar
06-16-2008, 11:50 PM
In the key down event of the form paste the following code


Select Case KeyCode

Case vbKeyF1
KeyCode = 0

End Select


and set the key preview property of form to yes