Share via


How to: Add Objects to a Control or Container Class

If you base a new class on a control or container class, you can add controls to it using the Class Designer the same way you add controls in the Form Designer.

To add controls to a class

  1. Open the class in the Class Designer.

  2. From the Form Controlstoolbar, drag a control to the control or container class in the Class Designer.

    Tip

    To deactivate the snap-to-grid functionality, press and hold the CTRL key while dragging objects from the toolbar.

See Also

Tasks

How to: Add Properties to Classes

Concepts

Working with Classes in Visual FoxPro

Container Hierarchy Object Referencing

Other Resources

Object-Oriented Programming