How to: Add Classes to Visual FoxPro Tools
Typically, you can add objects to forms by dragging classes from the Toolbox or adding them from the Form Controls toolbar. However, Visual FoxPro does not add custom classes to the Toolbox or the Form Controls toolbar automatically.
To add a class to the Toolbox
On the Tools menu, choose Toolbox.
Right-click the Toolbox and choose Add Class Library.
In the Category box in the Add Class Library dialog box, type or choose the category you want to add the class to.
In the Class Library box, type the name of the class library.
-OR-
Click the ellipsis (...) button to select a class library.
Visual FoxPro adds the class to the end of category you chose in the Toolbox.
For more information, see Toolbox (Visual FoxPro) and How to: Customize the Toolbox.
To add a class to the Form Controls toolbar
Open a form.
On the View menu, choose Form Controls Toolbar.
On the Form Controls toolbar, click View Classes, and then choose Add.
In the Open dialog box, select a class library, and then click Open.
The class appears on the Form Controls toolbar.
When you add class libraries to the Form Controls toolbar, they appear registered in the Controls tab of the Options dialog box. If you want the class to appear in the Forms Control toolbar in future sessions of Visual FoxPro, click Set As Default in the Controls tab of the Options dialog box.
Tip
You can register the class library so that when you choose View Classes on the Form Controls toolbar, the class library appears in the list of class libraries you can choose.
To register a class library
On the Tools menu, choose Options.
In the Options dialog box, choose the Controls tab.
On the Controls tab, choose Visual class libraries, and then click Add.
In the Open dialog box, select a class library, and then click Open.
To make the class library available on the Form Controls toolbar for future sessions of Visual FoxPro, click Set As Default.
Click OK.