open help file in .net application

  • Thread starter Thread starter CJM
  • Start date Start date
C

CJM

What I want to be able to do is open a help file from within my .NET
application and have it behave like a help file from any other MS
application. If the help button is pressed more than once I only want
the one instance of the help to be open.

This is what I have now to open the help file:

===============================================
Process proc = new Process();
proc.StartInfo.FileName = @"winhlp32.exe";
proc.StartInfo.Arguments = "-n " + mapId + " " +
Application.StartupPath + @"\" + helpFile;
proc.Start();

===============================================

Any help would be greatly appreciated.
 
Thanks for the reply Gabriele,

However, I have another question regarding the help. As it stands
right now when I click my help button I am brought to the beginning of
the help file. How do I go about opening the help file to the area in
the application that I am currently in? For example if I am in the
'Singing' area of the app I want help to open to the 'Singing' section
of help.
 
Back
Top