Popup help in .NET (C#) using text from a .chm file

  • Thread starter Thread starter Roooger
  • Start date Start date
R

Roooger

Hi all,

I know it is possible to show popup-help for a Control on a Form
(using the SetHelpString method of a HelpProvider).

For instance:

this.helpProvider1.SetHelpString(this.textBox1, "This is popup help
text.");

But I don't want to use hard coded text. I want to use text that is
located in the help file itself (.chm) so that, when I replace the
help file with an other one in a different language, the popup-text
will also be in another language.

With the HTML Help Workshop it is possible to add popup texts to a
compiled help file ([TEXT POPUPS]). But how can I access these texts
in .NET?

Please help,

Corne Los
 
Corne,
With the HTML Help Workshop it is possible to add popup texts to a
compiled help file ([TEXT POPUPS]). But how can I access these texts
in .NET?

I stand to be corrected on this, but I don't believe the HelpProvider
component supports calling text popups from a .chm file. I think you'd
need to call the HTML Help API using unmanaged code, as described in
this Knowledge Base article:

http://support.microsoft.com/?kbid=317406
 
Mr.Pete is on the mark. The Help Provider component cannot be used to extract pop-up texts defined in .chm help files. The Html Help API is the way to go.

However, if you dont want to use hard-coded text, there is another alternative. USe the Help class found in the System.Windows.Forms namespace. It provides static methods to show pop-up help. Use the class together with an xml file that contains your help messages. Extrat the message from the xml file and display using Help.ShowPopUpHelp(). To read more about the use of this class, read this article....http://www.codeproject.com/dotnet/HelpIntegrationInDotNet.as

All the best!
 
Back
Top