xxyyxx
xxyyxx

Reputation: 2396

How do you keep a listview row highlighted after its activated?

I have an application I'm working on that uses listviews. When you select a row from the list view it becomes highlighted, however when I double click on it to activate the listview item it is no longer highlighted. How would I get the listview item to stay highlighted upon activation, is this possible? Thanks.

Upvotes: 0

Views: 4312

Answers (1)

U1199880
U1199880

Reputation: 905

It sounds like you are somehow losing focus from the control. If that logic is correct, then you can set the listview's .HideSelection = False property to retain the visual selection when the control loses focus.

Upvotes: 5

Related Questions