ListBox selection

  • Thread starter Thread starter not_a_commie
  • Start date Start date
N

not_a_commie

When my focus exits a ListBox, I want the selection to fade to gray
like it does with the PropertiesGrid. Any idea how to make the ListBox
do that? I have several on screen and it is ambiguous as to which one
actually has the focus at the moment.
 
Set its DrawMode property to OwnerDrawFixed and override its DrawItem event.

MSDN has a sample in ListBox.DrawItem section.
 

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

Back
Top