Solved

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

Posted on 2007-11-25
4
288 Views
Last Modified: 2013-12-25
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?
0
Comment
Question by:murbro
  • 2
4 Comments
 
LVL 10

Expert Comment

by:effx
ID: 20345793
ListView.SetFocus
0
 

Author Comment

by:murbro
ID: 20348960
Hi

I want the selected line in the ListView to show as selected even when the ListView no longer has the focus
0
 
LVL 48

Accepted Solution

by:
jpaulino earned 500 total points
ID: 20351388
You have to change the property HideSelection to False

Listview1.HideSelection = False

jpaulino
0
 

Author Closing Comment

by:murbro
ID: 31410849
Thanks very much
0

Featured Post

Industry Leaders: 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

Suggested Solutions

Title # Comments Views Activity
Copy a row 12 69
TT Auto Dashboard 13 100
Help me. 3 69
Problem to With line 4 73
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

685 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