Unselecting Row in ListBox

J

JamesJ

I have 3 ListBoxes on a form. When I click on a
row in one ListBox I want to unselect any row
that might be selected in the other ListBoxes.

Thanks,
James
 
J

Jeff Boyce

James

Are you saying that when ListBox3 gets the focus, you want ListBox1 and
ListBox2 to have nothing selected?

If so, look into adding an event procedure in ListBox3's GotFocus event,
setting ListBox1 and ListBox2 to Null.
 
J

JamesJ

Yes and it worked like a charm.

Thanks,
James

Jeff Boyce said:
James

Are you saying that when ListBox3 gets the focus, you want ListBox1 and
ListBox2 to have nothing selected?

If so, look into adding an event procedure in ListBox3's GotFocus event,
setting ListBox1 and ListBox2 to Null.

--
Regards

Jeff Boyce
<Office/Access MVP>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Highlighted Row in Listbox 6
Listbox selection question 2
ACC2003: Last Row in Listbox not visible 3
Mousemove event problems 4
Listbox click event 4
macro substitution in C# 2
Access Cannot select items in listbox 1
Reset Listbox 2

Top