Figure A User Form dialog box design time

Note that the window on the right in Figure 14-1 contains the dialog box, in which we have placed a text box control and two command button controls. There is also a Toolbox window that contains icons used to add various Windows controls to the form.

To place a control on a form, we simply click on the icon in the Toolbox and then drag a rectangle on the form. This rectangle is replaced by the control. We can change the properties of the form itself (or any controls on the form) by selecting the object and making the changes in the Properties window. (Note the change to the form's caption in Figure 14-1.)

Additional controls may also be available on your system. These can be accessed by choosing "Additional controls" under the Tools menu. (This menu option is enabled, though only if a user form has the focus in the VB IDE.)

0 0

Post a comment