Disable ALT+F4 in a Form
Disable the shortcut ALT+F4 in a Form
Rate Disable ALT+F4 in a Form
(2(2 Vote))
Private Sub Form_Load()
Me.KeyPreview = True
End Sub
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If (Shift = vbAltMask) Then
Select Case KeyCode
Case vbKeyF4
KeyCode = 0
End Select
End If
End Sub
Disable ALT+F4 in a Form Comments
No comments yet — be the first to post one!
Post a Comment