This article was previously published under Q197594
Moderate: Requires basic macro, coding, and interoperability skills.
Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.
View products that this article applies to.
Form: frmListBox
------------------------
Caption: Test List Boxes
List Box:
Name: List0
RowSource: Employees
ColumnCount: 2
ColumnWidths: .25";1"
Visible: Yes
Left: 1"
Top: .25"
Width: 1.75"
Height: 1.3"
List Box:
Name: List2
RowSource: Customers
ColumnCount: 2
ColumnWidths: 0";1.25"
Visible: No
Left: 1"
Top: .25"
Width: 1.75"
Height: 1.3"
Command Button:
Name: Command0
Caption: Toggle Boxes
OnClick: [Event Procedure]
Private Sub Command0_Click
'Toggle the Visible property of each list box
List0.Visible = Not List0.Visible
List2.Visible = Not List2.Visible
End Sub
Private Sub Command0_Click
' Toggle the Visible property of the top list box
List2.Visible = Not List2.Visible
End Sub
Keywords: KB197594, kbpending, kbbug