Help in Windows applications (from msdn)

Source: Internet
Author: User

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

  1. 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.

  2. In the "properties" window, Set Set the property to. CHM, Col, or. htm help file.
  3. 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.

  4. 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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.