Moother
asked on
Blocking CTRL-F4
Hello Smart Folk,
Anyone got a code snippet that will stop my users being able to close a form with CTRL-F4?
Thanks,
M
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Put this code inside the keydown event for the form.
Also set the key preview property to yes.
If (Shift And acCtrlMask) > 0 And KeyCode = vbKeyF4 Then
KeyCode = 0
End If
Mike
Also set the key preview property to yes.
If (Shift And acCtrlMask) > 0 And KeyCode = vbKeyF4 Then
KeyCode = 0
End If
Mike
ASKER
worth a A grade!!!
thanks a million!
thanks a million!
too bad it wasn't worth a million....LOL...Mike
ASKER
I know the principle..., but lack the talent...