How to include a help file in a usercontrol

  • Thread starter Thread starter Academia
  • Start date Start date
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.
 
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.
 
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.
 
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
 
Back
Top