Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: VB4/32,VB5,VB6
Expertise: Intermediate
Mar 24, 2001



Building the Right Environment to Support AI, Machine Learning and Deep Learning

ShowHtmlHelp - Show a HTML Help page

Private Declare Function HtmlHelpTopic Lib "hhctrl.ocx" Alias "HtmlHelpA" _
    (ByVal hwnd As Long, ByVal lpHelpFile As String, ByVal wCommand As Long, _
    ByVal dwData As String) As Long

'A HTML Help file is composed by many HTML pages, compiled in one CHM file.
'This routine opens the HTML Help browser loading the specified help file and 
' showing its specified page.

'   ShowHelp App.Path & "\MyHelp.chm", "MyHelp_About.htm"

Sub ShowHtmlHelp(ByVal sHelpFile As String, ByVal sHelpPage As String)
    Const HH_DISPLAY_TOPIC = &H0
    On Error Resume Next
    ' open the help page in a modeless window
    HtmlHelpTopic 0, sHelpFile, HH_DISPLAY_TOPIC, sHelpPage
End Sub
Marco Bellinaso
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date