Hi All
How to link a chm file to an application?
Like say i have 2 forms in my application and if i press f1 in form1 respective help of Form1 should only come...Similarly for form2....
Plz help in solving my problem
Thank You.
How to link a chm file to an application?
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Anwar Buchoo89 pointsPosted Feb 21, 2006, 12:07 AM EST
// In class FormA
Process.Start("FormAHelp.chm");
// In class FormB
Process.Start("FormBHelp.chm");
if your help files are different.
Krishna Kishore36 pointsPosted Feb 21, 2006, 5:55 PM EST
Appropriately the link should go to that help .....
How to do that?
Anwar Buchoo89 pointsPosted Feb 21, 2006, 10:08 PM EST
Use the API function call ShellExecute(), e.g.:
ShellExecute(hwnd, "open", "$ChmDir\MyHelp.chm", "", "", SW_SHOWNORMAL);
For more information, see MSDN Support
Rgds.
Krishna Kishore36 pointsPosted Feb 22, 2006, 6:13 PM EST
Thank you very much, iwill try that and let u know the status,
bye,
Kishore.