How to include a help file in a usercontrol

A

Academia

I want to include a button that opens a .chm help file on a usercontrol.

I haven't yet looked at how the button is to open the help but before I go
there I need to know how to include the .chm file with the usercontrol so
that it will be available where ever the control is used.


Does anyone know how to include the file?

Thanks


A little help in what the button code must be like would also be
appreciated.
 
K

kimiraikkonen

I want to include a button that opens a .chm help file on a usercontrol.

I haven't yet looked at how the button is to open the help but before I go
there I need to know how to include the .chm file with the usercontrol so
that it will be available where ever the control is used.

Does anyone know how to include the file?

Thanks

A little help in what the button code must be like would also be
appreciated.

Hi Academia,

Maybe you'd better use:

system.diagnostics.process.start("yourhelpfile.chm")

Hope this helps.
 
P

Peter Macej

there I need to know how to include the .chm file with the usercontrol so
that it will be available where ever the control is used.

I would include the CHM file as embedded resource in usercontrol dll. In
usercontrol constructor I would read this resource and create a CHM file
in temp folder. Then set HelpProvider1.HelpNamespace to this path so
that F1 and your custom help works. Delete the file when destroying the
usercontrol.
 
A

Academia

I just sent a new post (before I saw this)

I do as you suggested as far as the temp file and that works find - thanks

I am still having a problem displaying a topic using the HelpShow overload
with 3 parameters.

Maybe the HelpProvider you suggested below would help?

Be nice if you could look at my new post.

Thanks a lot
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top