Microsoft Office Tutorials and References
In Depth Information
14.3 ActiveX Controls
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.)
14.3 ActiveX Controls
If you have been using Microsoft Windows for some time (as we presume you have, since you are
reading this topic), then you are quite familiar with controls at the user level. The following are
examples of controls:
Command buttons
Text boxes
List boxes
Combo boxes
Option buttons
Check boxes
Labels
Tabs
Scroll bars
All of these controls have a visual interface for interaction with the user. However, some controls
do not have a visual interface. One example is the Timer control, which can be set to fire an event
at regular intervals. Thus, the programmer can write code that will execute at regular intervals.
 
 
Search JabSto ::




Custom Search