S
Samuel Dass
Hi!
I have a strange problem with connecting help file to windows forms. I am
using the helpprovider and attaching the help in the usual way via designer.
I have another popup form and whenever I open that form, the help stops
working. So, after I start my application and open the popup form, and close
it, then if I press F1 on the main form, the help does not come up (seems
like the cursor changes to busy momnetarily and then dies).
However, if I open the help file once before opening the popup form,
everything works fine (even after the popup closes). I am using COM interop
on the popup form (that may be screwing it up...)
Any ideas...? here is the code on the main form.
private System.Windows.Forms.HelpProvider helpProvider1;
this.helpProvider1 = new System.Windows.Forms.HelpProvider();
this.helpProvider1.HelpNamespace = "../Help/octogo.chm";
this.helpProvider1.SetHelpKeyword(this, "Emailpasswd.htm");
this.helpProvider1.SetHelpNavigator(this,
System.Windows.Forms.HelpNavigator.Topic);
this.helpProvider1.SetShowHelp(this, true);
Help.ShowHelp(this, helpProvider1.HelpNamespace, HelpNavigator.Topic,
this.helpProvider1.GetHelpKeyword(this));
Thanks for any pointers
I have a strange problem with connecting help file to windows forms. I am
using the helpprovider and attaching the help in the usual way via designer.
I have another popup form and whenever I open that form, the help stops
working. So, after I start my application and open the popup form, and close
it, then if I press F1 on the main form, the help does not come up (seems
like the cursor changes to busy momnetarily and then dies).
However, if I open the help file once before opening the popup form,
everything works fine (even after the popup closes). I am using COM interop
on the popup form (that may be screwing it up...)
Any ideas...? here is the code on the main form.
private System.Windows.Forms.HelpProvider helpProvider1;
this.helpProvider1 = new System.Windows.Forms.HelpProvider();
this.helpProvider1.HelpNamespace = "../Help/octogo.chm";
this.helpProvider1.SetHelpKeyword(this, "Emailpasswd.htm");
this.helpProvider1.SetHelpNavigator(this,
System.Windows.Forms.HelpNavigator.Topic);
this.helpProvider1.SetShowHelp(this, true);
Help.ShowHelp(this, helpProvider1.HelpNamespace, HelpNavigator.Topic,
this.helpProvider1.GetHelpKeyword(this));
Thanks for any pointers