Help Files Sample

To get samples and instructions for installing them, see the following:

  • Click Samples on the Visual Studio Help menu.

    For more information, see Locating Sample Files.

  • The most recent versions and the complete list of samples are available on the Visual Studio 2008 Samples Web site.

  • You can also locate samples on your computer's hard disk. By default, samples and a Readme file are copied to a folder under \Program Files\Visual Studio 9\Samples\. For Visual Studio Express Editions, all samples are located on the Internet.

To run this sample

  • Press F5.

Demonstrates

Each tabbed page of the TabControl displays a different type of help:

  • ToolTip   A ToolTip component is added to the form. This adds the ToolTip1 property to each control on the form.

  • PopUp   A HelpProvider component named hpAdvancedCHM is added to the form. This adds the Help String on hpAdvancedCHM property to each control which is set with a Help string. The ShowHelp on hpAdvancedCHM property is also added to each control, and is set to True. The HelpButton property of the form is set to True to display the question mark button in the corner next to the close button. The minimize and maximize buttons have to be turned off for the Help button to appear.

  • HTML Help   A HelpProvider component named hpAdvancedCHM is added to the form. This adds the HelpKeyword on hpAdvancedCHM, HelpNavigator on hpAdvancedCHM, and ShowHelp on hpAdvancedCHM properties to each control. The ShowHelp on hpAdvancedCHM property is set to True. The compiled Help file is open to the Help page with the specified keyword. The HelpButton property of the form is set to True to display the question mark button in the corner next to the close button. The minimize and maximize buttons have to be turned off for the Help button to appear.

  • Error Provider   The ErrorProvider component is used to show how to give the user visible warning on a control that does not validate to the correct data type.