If you create a form with one of the form wizards and then want to add controls to it, you can match the style of the existing controls by using the controls in the wizard controls library, Wizstyle.vcx.
When you open the wizards control library, wizard-style controls (such as chiselfield
, embossedmemo
, and so on) are available in the Form Controls toolbar. To find out which control to use, select an existing control and note its class and class library. For example, a standard wizard field would be in the Standardfield
class, found in Wizstyle.vcx.
Tip: |
---|
Use ToolTips on the Form Controls toolbar to help you identify class names. |
To match controls in a wizard-generated form
-
In the Form Designer, open the form.
-
From the Form Controls toolbar, choose the View Classes button and choose Add.
-
In the Open dialog box, locate Wizstyle.vcx in the Wizards subdirectory and choose OK.
-
In the Form Controls toolbar, select the control that corresponds to an existing control in the form and drag in the form to add it.
Note: If you move a form to a new directory or another system, you should move the control library associated with the form along with it.
See Also
Other Resources
Adding Objects to FormsHow to: Add Controls to a Form with the Component Gallery
How to: Create a New Form
How to: Create Forms with Local and Remote Data
How to: Add Visual FoxPro Controls to a Form
Creating Forms
How to: Add User-Defined Objects to a Form
How to: Select, Move, and Resize Form Controls
Aligning Controls in Forms
How to: Set Tab Order for Controls