• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 144
  • Last Modified:

How do I show that a LISTVIEW item is selected, even when the user's focus is on another control?

For example, I have a listview with multiple items.

Say the user selects 2 or 3 items.

Then the user clicks on a text box to enter a value.... but by default, the listview
does not display which items were selected.... since the FOCUS was shifted to another control.

When the focus is elsewhere, the listview does not show which items are selected... the only way to find out is to click back onto the listview.

I noticed that windows explorer on windows XP leaves items with a grayed background when the focus leaves the listview.

How do I do this? The answer if evading me =)


Thanks

Brian
0
oxygen_728
Asked:
oxygen_728
1 Solution
 
Ryan ChongCommented:
Try set the ListView HideSelection Property to False:

ListView1.HideSelection = False

cheers
0
 
oxygen_728Author Commented:
Hehe, thanks Ryan.

I had a feeling I was overlooking something.

Long night of programming.

Thanks again.

brian
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now