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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

changing the highlight color of the selected row in a listbox

Status
Not open for further replies.

MBall2003

Programmer
May 30, 2003
61
US
i have form with two listboxes right next to each other
there tab indexes are 1,2

i just want to know if there is a way to change the highlight or disable the row selected so the user can tell that they tabbed over to the next list box


any help would be greatly appreciated thanks

mball
 
Easy as you please. Set an On Enter event for your first list box that reads:

Me.List1.BackColor = 10092543 (or whatever color value you want to assign)

Then set an On Exit event that reads:

Me.List1.BackColor = 16777215

Do the same for any other items you want to highlight.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top