By using the helpprovider component, You can append the help topic in the Help File (in HTML, htmlhelp 1.x, or a later version) to a specific control on Windows Forms.
Help
- SetHelpproviderDrag the component from the toolbox to the form.
This component will be located in the bar at the bottom of the Windows Forms designer.
- In the "properties" window, Set Set the property to. CHM, Col, or. htm help file.
- Select another control on the form and set it in the "properties" window. Attribute.
This is throughHelpproviderThe string passed by the component to the Help file, used to request the corresponding "help" topic.
- In the "properties" window, Set Set property The enumerated value.
This determines howHelpkeywordProperties are passed to the help system. The following table lists possible settings and their descriptions.
Member name |
Description |
Associateindex |
Specifies that the index of the specified topic is executed in the specified URL. |
Find |
Display the search page of the specified URL. |
Index |
Specify to display the index of the specified URL. |
Keywordindex |
Specify the keyword to be searched and the operation to be taken in the specified URL. |
Tableofcontents |
Specifies the directory for displaying the HTML 1.0 help file. |
Topic |
Displays the topic referenced by the specified URL. |
IfHelpkeywordAndHelpnavigatorWhen the Property Control has focus, pressF1Key.HelpproviderThe Help file associated with the component.
Note:Currently,HelpnamespaceAttributes support help files in the following formats: htmlhelp 1.x, htmlhelp 2.0, and HTML. Therefore, you canHelpnamespaceSet the property to http: // address (such as a web page ). If this is set, it will open the default browser, display this web pageHelpkeywordTo jump to a specific part of the HTML page.
Security descriptionYou must carefully check all the information sent from the client before using the information in the application. Malicious users may attempt to send (inject) executable scripts, SQL statements, or other code. Before displaying user input, storing it in a database, or using it, make sure it does not contain any possible insecure information. The common check method is to use a regular expression to search for keywords, such as "script", after receiving input from a user ".
Note that you can also useHelpproviderThe component display pop-up help (even if it has been configured to display the Help file of the control on Windows Forms ). For more information, see the displayed help.