Article ID: 189733
Article Last Modified on 5/13/2003
Private Sub Form_Load
' Add some items to the lists
List1.AddItem "test"
List1.AddItem "test1"
WLList1.AddItem "test"
WLList1.AddItem "test1"
End Sub
Private Sub Command1_Click()
' Select the first item in both lists
List1.ListIndex = 0
WLList1.ListIndex = 0
End Sub
Private Sub List1_Click()
Debug.Print "List1.Click"
End Sub
Private Sub WLList1_Click()
Debug.Print "WLList1.Click"
End Sub
Private Sub Form_Load()
' Add some items to the lists
List1.AddItem "test"
List1.AddItem "test1"
WLList1.AddItem "test"
WLList1.AddItem "test1"
End Sub
Private Sub Command1_Click()
' Select the first item in both lists
List1.ListIndex = 0
' Call custom property to set windowless listindex
SetListIndex = 0
End Sub
Private Sub List1_Click()
Debug.Print "List1.Click"
End Sub
Private Sub WLList1_Click()
Debug.Print "WLList1.Click"
End Sub
Private Property Let SetListIndex(NewListIndex As Long)
' Check if selection changed
If NewListIndex <> WLList1.ListIndex Then
WLList1.ListIndex = NewListIndex
End If
End Property
Additional query words: kbDSupport kbDSD Lightweight kbVBp kbVBp600bug kbCtrl kbDSupport
Keywords: kbbug KB189733