VB 2005 ListView - Selected row disappears when clicking on other controls

Hi

I have a ListView control on a windows form. When I click on another control, the selected row (or greay shading on this) dissapears.

I want it to stay there. How do I do this?
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAsked:
Who is Participating?
 
Jorge PaulinoIT Pro/DeveloperCommented:
You have to change the property HideSelection to False

Listview1.HideSelection = False

jpaulino
0
 
effxCommented:
ListView.SetFocus
0
 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Hi

I want the selected line in the ListView to show as selected even when the ListView no longer has the focus
0
 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Thanks very much
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.