Share via


WhatsThisHelpID Property

Specifies a Help topic context ID to provide What's This Help for an object. Available at design time and run time.

Object.WhatsThisHelpID[ = nContextID]

Property Values

  • nContextID
    Specifies the context ID number of a topic in a Help file. nContextID may be negative, zero, or positive. The following table lists the values for nContextID and what is displayed when the object is clicked with the question mark mouse pointer:
    nContextID Description
    Negative (Default, –1) Displays the What's This Help popup with the message "No Help topic is associated with this item."
    Zero Visual FoxPro searches upward through the object's hierarchy for the first object with a positive WhatsThisHelpID property value. If an object with a positive WhatsThisHelpID property value is found, the What's This Help topic is displayed. If an object with a positive WhatsThisHelpID property value is not found, no What's This Help topic is displayed.
    Positive Displays the What's This Help topic corresponding to the context ID specified with nContextID. If no Help topic has the context ID specified with nContextID, the What's This Help popup with the message "No Help topic is associated with this item" is displayed.

See Also

HelpContextID Property | SET HELP | ShowWhatsThis Method | WhatsThisButton Property | WhatsThisHelp Property | WhatsThisMode Method

Applies To: CheckBox | ComboBox | CommandButton | CommandGroup | Container Object | Control Object | EditBox | Form | Grid | Header | Image | Label | Line | ListBox | OLE Bound Control | OLE Container Control | OptionButton | OptionGroup | Shape | Spinner | TextBox | Timer | ToolBar