colol listview item

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi,
there is a vb.net listview (singleselect = true) control and when it loses
the focus i want to keep the selecteditem highlighted

i can use for example
listView.selectedItems(0).backcolor = color.Blue
in the SelectedIndexChanged event.
My prob is that i can't find the same color as the one that is used when
the listview item is highlighted. how can i find it ?
 
Hi,

Set the listview's hideselection property to false.

http://msdn.microsoft.com/library/d...ndowsformslistviewclasshideselectiontopic.asp

Ken
--------------------------------
hi,
there is a vb.net listview (singleselect = true) control and when it loses
the focus i want to keep the selecteditem highlighted

i can use for example
listView.selectedItems(0).backcolor = color.Blue
in the SelectedIndexChanged event.
My prob is that i can't find the same color as the one that is used when
the listview item is highlighted. how can i find it ?
 

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