Insert a commondialog box, right click it properties, click the help tab and then fill in the boxes.
use the command ShowHelp to show the help file:
Code:Commondialog1.Showhelp
Printable View
Insert a commondialog box, right click it properties, click the help tab and then fill in the boxes.
use the command ShowHelp to show the help file:
Code:Commondialog1.Showhelp
Try this. It will display the Contents of the Help file. If you want to display a specific context, set the HelpContext property to the topic you want to show.
Code:Private Sub Command1_Click()
'Specify the Help file
CommonDialog1.HelpFile = "C:\HelpFile.hlp"
'Display the Contents specified in the [CONTENTS] section of the HPJ file.
CommonDialog1.HelpCommand = cdlHelpContents
'Show the HelpFile
CommonDialog1.ShowHelp
End Sub
*wow* didn't knew this, I just did it with the ShellExecute API, it makes the program smaller (except when you already have the common Dialog in your prog)