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
Open the class in the Class Designer.
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.