Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21140

HTML Help with F1 Key

$
0
0
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:-

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

I get no response at all
What have I done wrong?

Viewing all articles
Browse latest Browse all 21140

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>