Choose the Right Control
The Toolbox includes 15 standard controls that you can draw on forms. Table 20-5 lists those controls and describes their use.
Table 20-5. Built-in form controls (Forms 2.0)
|
Control |
Toolbox icon |
Use to |
|---|---|---|
|
Label |
|
Display text the user can’t change. |
|
TextBox |
|
Display text the user can edit. Text boxes can display scrollable text. |
|
ComboBox |
|
Allow selections from a drop-down list of choices. Combo boxes can include a text box where the user can type a choice not in the list. |
|
ListBox |
|
Allow selections from a scrollable list of choices. |
|
CheckBox |
|
Get or display yes/no choices. |
|
OptionButton |
|
Get or display a set of either/or choices. |
|
ToggleButton |
|
Get or display on/off options. |
|
Frame |
|
Group option buttons or other related controls. |
|
CommandButton ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access