Call or Open CHM file in Visual Basic

hi! i just want to know how can i open an .CHM in Visual basic.
thanks.
nolramAsked:
Who is Participating?
 
TILLConnect With a Mentor Commented:

Const HH_DISPLAY_TOPIC = &H0
Const HH_HELP_CONTEXT = &HF

Private Declare Function HtmlHelp Lib "HHCtrl.ocx" Alias "HtmlHelpA" (ByVal hwndCaller As Long, _
                                                                                                   ByVal pszFile As String, _
                                                                                                   ByVal uCommand As Long, _
                                                                                                   dwData As Any)  as Long
Private Sub Form_Load()
    HtmlHelp 0, "PATH_TO_YOUR_CHM_FILE ", HH_DISPLAY_TOPIC, 0
End Sub
0
 
nolramAuthor Commented:
Thank you so much TILL
'til next time. peace
0
 
laurentiu_turbatuCommented:
Shell("rundll32 url.dll,FileProtocolHandler " + "path and file name.chm", AppWinStyle.MaximizedFocus)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.