Hi
I want to call my HTML Help File when I press F1 and the Form is visible.
on the form I have set Keypreview to True,Whatsthis help to False
and HelpContextID = 20 with code:-
I get no response at all
What have I done wrong?
I want to call my HTML Help File when I press F1 and the Form is visible.
on the form I have set Keypreview to True,Whatsthis help to False
and HelpContextID = 20 with code:-
Code:
VB6
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyF1 Then
HtmlHelp hWnd, "AddressBook.chm", HH_HELP_CONTEXT, ByVal CLng(20)
KeyCode = 0
End If
End Sub
What have I done wrong?