Message 1 of 11
Display Custom Help in .NET
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to add custom help to a C#.NET application. The first thing I'm trying to do is add a "Help" button to a dialog box, similar to those found throughout Autocad.
I added a button handler that uses a line like the following to attempt to display the help topic:
Help.ShowHelp("MyCustomHelp.chm", "CustomHelpTopic.htm");
However, I can only get it to work if I include the complete path to the .chm file. Naturally, I do not want to hardcode this path, so I'm guessing I need to find the .chm file, then get the full pathname to the file and use that in the call to ShowHelp(). Is this what I need to do, or is there a simpler way?
Also, how should I go about getting it so that the correct help file is displayed when the user hits F1 after running one of my custom .NET commands? In other words, do the equivalent of the SHOWFUNHELP command from AutoLisp?
I added a button handler that uses a line like the following to attempt to display the help topic:
Help.ShowHelp("MyCustomHelp.chm", "CustomHelpTopic.htm");
However, I can only get it to work if I include the complete path to the .chm file. Naturally, I do not want to hardcode this path, so I'm guessing I need to find the .chm file, then get the full pathname to the file and use that in the call to ShowHelp(). Is this what I need to do, or is there a simpler way?
Also, how should I go about getting it so that the correct help file is displayed when the user hits F1 after running one of my custom .NET commands? In other words, do the equivalent of the SHOWFUNHELP command from AutoLisp?
Sinc