Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

List Box Selection

Status
Not open for further replies.

MrBelfry

IS-IT--Management
May 21, 2003
289
0
0
Hello

Please help me be fussy and solve this problem. I have a list box and combo box on the same form. When I select an item in the list box it obviously becomes highlighted. When I select an item in the combo box the selection in the list box stays highlighted and potentially confuses the user.

How do I remove the highlight from the list box when I click the combo box?

Thanks in advance

MrBelfry
 
you will need to use the after update property of the combobox and check if there is something in it. then if there is use something like this

Dim intX As Long
'Deselect all listbox values
For intX = 0 To me.Nameoflistbox.ListCount - 1
Me.Nameoflistbox.Selected(intX) = False
Next intX

Hope that helps
Steve
 
Thanks Steve. I'll give it a go
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top