HTML Help Workshop insert a helpfile in a vb.net program

Once you have your .chm file, you use the Windows Forms HelpProvider class (which should be on your toolbox) to associate things with your help file.

[mshelp]ms-help://MS.VSCC/MS.MSDNVS/vbcon/html/vbtskIntegratingHelpIntoWFCClientApplicationWithHelpProviderControl.htm[/mshelp]

Once you drop this component on your form your controls on the form should gain extra properties, which can be used to link them to the help file.

You can also use Windows.Forms.Help.ShowHelp() to display your help file manually.
 
HI Divil,
can you give me a sample please ?
I have try to use the Help.ShowHelp(parent,"myhelp.chm")
but i got a error message. System.ArgumentNullException'
What have i forgotten ?
best regards Datahighway
 
I haven't actually ever used this, but looking at the help file I think you should be doing:

Visual Basic:
Help.ShowHelp(Me, "myhelp.chm")
 
What if for each form in my VB.Net project, i want to open a different page in my chm help file?

for example, i have Form1, Form2 and Form3, for Form1, when i click F1, i want it to open CHM file's Chapter1 directly, Form2 to Chapter2; Form3 to Chapter3.

Is it possible to do it?


Anson
 
Back
Top