--- title: "HelpProvider Component Overview" ms.date: "03/30/2017" f1_keywords: - "HelpProvider" helpviewer_keywords: - "HelpProvider component [Windows Forms], about HelpProvider component" - "Help [Windows Forms], adding to Windows applications" - "F1 Help [Windows Forms], adding to Windows Forms" - "dialog boxes [Windows Forms], context-sensitive Help" - "Windows Forms, context-sensitive Help" ms.assetid: 6b10c2cc-c577-4cb5-9669-e37b33416af9 --- # HelpProvider Component Overview (Windows Forms) The Windows Forms [HelpProvider](helpprovider-component-windows-forms.md) component is used to associate an HTML Help 1.x Help file (either a .chm file, produced with the HTML Help Workshop, or an .htm file) with your Windows application. You can provide help in a variety of ways: - Provide context-sensitive Help for controls on Windows Forms. - Provide context-sensitive Help on a particular dialog box or specific controls on a dialog box. - Open a Help file to specific areas, such as the main page of a Table of Contents, the Index, or a search function. ## Using the Help Provider Adding a component to your Windows Form allows the other controls on the form to expose the Help properties of the component. This enables you to provide help for the controls on your Windows Form. You can associate a Help file with the component using the property. You specify the type of Help provided by calling and providing a value from the enumeration for the specified control. You provide the keyword or topic for Help by calling the method. Optionally, to associate a specific Help string with another control, use the method. The string that you associate with a control using this method is displayed in a pop-up window when the user presses the F1 key while the control has focus. If has not been set, you must use to provide the Help text. If you have set both and the Help string, Help based on will take precedence. > [!NOTE] > You may encounter problems using the relative path when specifying the path to the Help file in the method or property of the control. As such, be sure to use the absolute file path to specify the Help file. ## See also - [Help Systems in Windows Forms Applications](../advanced/help-systems-in-windows-forms-applications.md)