Discussion:
Listbox Question
(too old to reply)
Zero
2003-10-02 16:31:05 UTC
Permalink
Heres the deal ...

I have two listboxes, and Im currently using 'gotfocus' and
'lostfocus' to do a .enable=false/true statment. What Im looking to do
is actually UNSELECT the listitem in the box that is not enabeled.

Example.

When list1 has focus, list2 unselects (forgets the list2.text info &
removed the blue bar) from the previously selected item in the listbox

when list2 has focus, list1 unselects&forgets the item that was
previously selected.

Thanks
2003-10-03 08:18:51 UTC
Permalink
try this...

Private Sub list1_GotFocus()
list2.ListIndex = -1
End Sub

Private Sub list2_GotFocus()
list1.ListIndex = -1
End Sub
Post by Zero
Heres the deal ...
I have two listboxes, and Im currently using 'gotfocus' and
'lostfocus' to do a .enable=false/true statment. What Im looking to do
is actually UNSELECT the listitem in the box that is not enabeled.
Example.
When list1 has focus, list2 unselects (forgets the list2.text info &
removed the blue bar) from the previously selected item in the listbox
when list2 has focus, list1 unselects&forgets the item that was
previously selected.
Thanks
Loading...