Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


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

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.

'Example:
'   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.

 

 

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