ListBox control - highlight item

J

JPSutor

When I have the user tab over to the listbox control, how can I get one
of the selected items to be highlighted without the user manually
selecting it. The object is to show a highlighted item when the
control gets focus
 
L

Larry Lard

JPSutor said:
When I have the user tab over to the listbox control, how can I get one
of the selected items to be highlighted without the user manually
selecting it. The object is to show a highlighted item when the
control gets focus

You will need to make your ListBox ownderdrawn - look up
ListBox.DrawMode in the docs.

It's going to look a little strange though, isn't it, having one item
selected and another one also highlighted?
 

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

Top