How to: Add Help Buttons to Forms
You can program your application so that users can click a Help button to access the Help file. Adding Help buttons can make it easier for beginning users to access Help.
Tip
You can save the Help command button as a class so that you can add it to a form more easily.
To add a Help button to a form
In the form's Init event, use the SetAll method to set the HelpContextID property for all the form's objects to the value you assigned to the Help topic you want to use.
For example, the following line of code sets all the form's objects HelpContextID properties to 7 as their Help context ID number:
THIS.SetAll("HelpContextID", 7)
Add a command button to the form.
Set the command button's Caption property to the text, Help.
In the command button's Click event, add the following command:
HELP ID THIS.HelpContextID
For more information, see Init Event, SetAll Method, HelpContextID Property (Visual FoxPro), Caption Property, Click Event, and HELP Command.
See Also
Tasks
How to: Add Context Sensitive Help to Applications
How to: Implement "What's This?" Help