HelpTopicID

  • Thread starter Thread starter wndr
  • Start date Start date
W

wndr

Hi all.
I am with VB expirience, now working with C#.
Coul anyone please sugest me where could I find help on how to connect for
example text box with the HelpContextID from chm file (that's the way it
workes in VB). I am not sure how it's suppossed to be in C#.
Thanks in advance for any help.
 
wndr said:
I am with VB expirience, now working with C#.
Coul anyone please sugest me where could I find help on how to connect for
example text box with the HelpContextID from chm file (that's the way it
workes in VB). I am not sure how it's suppossed to be in C#.
Thanks in advance for any help.

Drag from the Toolbox onto your Form a HelpProvider component. From that
moment on, your textboxes (and all other controls) will acquire three
properties starting with "Help...", such as "HelpKeywrd on HekpProvider1".
You use those properties to "map" the adequete help file entry for the
textbox.
 
Hi Alberto.
Thank you for help.
But I am still haing a problem with that.
I created simple project with one form and one checkbox1, then I added to
the Form HelpProider1, and then in my script I added:

String s = Directory.GetCurrentDirectory();

string sReg = Application.StartupPath;

if (s.EndsWith("\\") == false)

s += "\\";

this.helpProvider1.HelpNamespace = s + "Test.chm";

this.helpProvider1.SetHelpKeyword(this.checkBox1, "275");

this.helpProvider1.SetHelpNavigator(this.checkBox1,
System.Windows.Forms.HelpNavigator.TopicId);

When run it and drug the "?" to the checkbox, nothing happens.

I tested same thing in VB an it works fine.

What am I missing?

Please help
 
Back
Top