ListBox Members
Use the ListBox
control to display scrollable lists of items. In addition to the members listed for the general Control
object, the ListBox
control has the following members. Key members (shown in bold) are covered in the following reference section:
AddItem |
BackColor |
BorderColor |
BorderStyle |
BoundColumn |
Clear( ) |
Column |
ColumnCount |
ColumnHeads |
ColumnWidths |
Enabled |
Font |
ForeColor |
IMEMode |
|
List |
ListCount |
ListIndex |
ListStyle |
Locked |
MatchEntry |
MouseIcon |
MousePointer |
|
RemoveItem |
Selected |
SpecialEffect |
Text |
TextAlign |
TextColumn |
TopIndex |
Value |
The listbox control is similar to the combo box control, except the list is always displayed and it does not include an edit region. The ListBox
members are nearly identical to the ComboBox
members, so see "ComboBox Members,” earlier in the chapter, for those topics. The two members that are unique to the ListBox
control are covered here.
Get Programming Excel with VBA and .NET now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.