954,529 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Binding a Help File to an Application

I have a help file (.chm), and I want to be able to perform a seemingly simple operation of having that file open when the user selects "Contents" from the "Help" menu. I have added the proper object to the project and set it's namespace property to the location of the file. The problem is, I can't find anything that explains how to bind this to the control. I can't find anything in the help file (C# Express) on how to actually write the code that makes this happen.

I'm also wondering if there's more than one way to do this.

Toulinwoek
Posting Whiz in Training
274 posts since Mar 2005
Reputation Points: 10
Solved Threads: 2
 

OK, I found it. Pretty simple thing really, as I kind of felt it would be. While I'm sure most of you already know it, just to be prudent and fair, here's the code:

private void MenuItem_Click(object sender, EventArgs e)
        {
            Help.ShowHelp(this, HelpProvider.HelpNamespace);
        }


Now I found this by posting a question on the Microsoft VS forum, and someone directed me to a site called http://www.helpware.net . Interesting place really.

Now, if I can just get this database thing figured out. . . .

Toulinwoek
Posting Whiz in Training
274 posts since Mar 2005
Reputation Points: 10
Solved Threads: 2
 

Yeah I hear you on the database thing, also thanks for the info as it saved me lots of trouble :)

Poab9200
Light Poster
35 posts since Aug 2008
Reputation Points: 16
Solved Threads: 1
 
pankajmk
Newbie Poster
2 posts since Jan 2009
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You