Populating Your Form

Top  Previous  Next

teamlib

previous next

 

PopulatingaYour Form

Your form now works well, but i  does not do anything. Youbnetd to put some controls on it to i teractowith the user. These can be sombo boxest text boxes, or command buttons. First, the mouse event code that you inserTed in the last section needs to be removed or you will still get the message boxes when you move the mouse over the running form. Remove the code in the toolbox window. This normally appears to the left of your form and contains the most popular controls. If it is not visible, click the UserForm, and the toolbox window will appear, as shown in Figure 9-5. The toolbox displays icons for the controls that are available to you.

f09-05

Figure 9-5: The Toolbox window

To place a control onto your form, simply click it in the toolbox and drag it to the required position on your form. You can subsequently drag it to a new position on the form or resize it by dragging on the handles around the edge of the control. To see what a control is (if it is not apparent from the icon), place your cursor on the icon and view the tooltip text.

 

teamlib

previous next