CHM help in VB
This is related to CHm itself. When I run the CHM help, page doesn't show, error says can't diplay the page, but if I click the topic again, it'll work. How come it doesn't work when I load the CHm file. Another question, what is the best way to launch chm file from VB?
[292 byte] By [
AndyK] at [2007-11-17 17:10:07]

# 1 Re: CHM help in VB
This can occur if u have given the wrong page id.
This is the way that I have done this.
1.Insert the Attached class.(rename that to .cls I can't add cls to this)
2.Coding
*******
to load contents
Public bhelp As Boolean
bhelp = LaunchHTMLHelp(App.Path & "\chm file.chm", hWnd, 0, 1)
to load index
Public bhelp As Boolean
bhelp = LaunchHTMLHelp(App.Path & "\chm file.chm", hWnd, 0, 2)
to load a Page
Dim hhelp As HTMLHelp
Set hhelp = New HTMLHelp
With hhelp
.CHMFile = App.Path & "\chm file.chm"
.HHTopicURL = "Page.htm"
.HHDisplayTopicURL
End With