?
Solved

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

Posted on 2003-03-25
2
Medium Priority
?
142 Views
Last Modified: 2010-05-01
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
Comment
Question by:oxygen_728
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 53

Accepted Solution

by:
Ryan Chong earned 120 total points
ID: 8208264
Try set the ListView HideSelection Property to False:

ListView1.HideSelection = False

cheers
0
 

Author Comment

by:oxygen_728
ID: 8208443
Hehe, thanks Ryan.

I had a feeling I was overlooking something.

Long night of programming.

Thanks again.

brian
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question