Help Files

  • Thread starter Thread starter Richard
  • Start date Start date
R

Richard

I have attached a help file to a form(help1.Html).

Dim hlp As New Windows.Forms.HelpProvider
hlp.SetShowHelp(Me, True)
hlp.HelpNamespace = "c:/temp/Help1.html"

On a button click I want to change the help to a new help file(Help2.Html).
Dim hlp As New Windows.Forms.HelpProvider
hlp.SetShowHelp(Me, True)
hlp.HelpNamespace = "c:/temp/Help2.html"

When I press the button and press F1, it always open help1 instead of help2.
What am I doing wrong or what am I suppose to do to make it work like this.

Thanks
RC
 
Richard said:
I have attached a help file to a form(help1.Html).

Dim hlp As New Windows.Forms.HelpProvider
hlp.SetShowHelp(Me, True)
hlp.HelpNamespace = "c:/temp/Help1.html"

On a button click I want to change the help to a new help
file(Help2.Html).
Dim hlp As New Windows.Forms.HelpProvider
hlp.SetShowHelp(Me, True)
hlp.HelpNamespace = "c:/temp/Help2.html"

When I press the button and press F1, it always open help1 instead of
help2.
What am I doing wrong or what am I suppose to do to make it work like
this.

Instead of instantiating HelpProvider at runtime, place a HelpProvider
component on your form at design time. Then change the 'HelpNamespace'
property of the HelpProvider you placed on the form instead of instantiating
a new HelpProvider.
 

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

Back
Top