For Win32 application, you can use API function ShellExecute to launch a CHM file.
Example(delphi):
uses
SHELLAPI;
ShellExecute(Application.Handle,'open', PChar('hh.exe'),PChar('filename.chm'), nil, SW_SHOW); |
Example(VB):
Private Declare Function ShellExecute
_ Private Sub
Command2_Click() |
For .NET application, you can use Help.ShowHelp to launch a CHM file.
Example(C#):
private void button1_Click(object
sender, System.EventArgs e) { Help.ShowHelp(this, "filename.chm"); } |