In Vb I want to override the F1 key on a forum. How does one do that?
Printable View
In Vb I want to override the F1 key on a forum. How does one do that?
Was it on a form?
In any case, follow links and links to links...maybe...
http://www.codeguru.com/forum/showth...hlight=disable
Yes I meant Forms.... **** I cant speel. And that one I actually knew. Anyway how do I override this F1 key. Please can you help me?
Do not know what exactly you're asking....
Set keypreview of form to true
in keyDown test for Keycode=VbKeyF1
if match...do what you need...
Something happens when you press F1? Does it display
an help you do not want to appear on that form?
ie: stopping an help from appearing:
Code:Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyF1 Then
KeyCode = 0
'do what you need
End If
End Sub
Set keypreview of form to true
Thanks That was why it wasnt working. Excellent!
Nice to have feedback
;)