Link a .chm help file with your VB.net app

Posted: April 3, 2009 in Programming
Tags: , , , , ,

1. Place the “.chm file” to the Bin/Debug of your Vb.net application folder.

chm-file

2. Create a menu / button and double click it (to the code area) and type the following:

System.Windows.Forms.Help.ShowHelp(Me, “Help.chm”, HelpNavigator.AssociateIndex)

help.chm – the name of ur chm file. if u named it as myapp.chm then u need to type it as myapp.chm (I know its a bit more childish !!! but some required it…;-))

3. Thats all. Now run the app and press the menu / button. it will work ๐Ÿ˜‰

Note: This code is actually copied from a site. I forgot from where I have copied it. Anyhow, many thanks to the coder for posting it.

Advertisements
Comments
  1. Thuy says:

    It works well after running the app. However, when I try to install the application, the .chm helpfile doesn’t show. Any help with this?

  2. hello thuy

    buddy you have make changes in your SetUp Project

    Go go setup project
    goto file system editor
    goto application folder
    right click > Add > File > “Select the .chm file”
    and
    last rebuilt the setup

    and reinstall it

    it will
    work fine

    ๐Ÿ˜‰

  3. fsd says:

    nice…………works like a dream
    Thanks

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s