Solved

Listview multiselect without CTRL + Click

Posted on 1998-07-07
2
967 Views
Last Modified: 2008-03-10
Is there a way to allow the user to select multiple items in ListView by clicking on each one instead of having to use CTRL+Click.  

On the ListBox you can get this functionality by setting  MultiSelect = 1 (Simple) instead of 2 (Extended). How could you get the same effect in ListView ? API calls ?
0
Comment
Question by:niraj070598
2 Comments
 
LVL 4

Accepted Solution

by:
yowkee earned 100 total points
ID: 1465159
niraj,

  You could implement multiselect in listview by modify listview style to include checkbox in each item.

  There are good examples(commented) at these pages:
http://www.mvps.org/vbnet/code/comctl/lvcheckbox.htm
http://www.mvps.org/vbnet/code/comctl/lvcheckboxmeth.htm
http://www.mvps.org/vbnet/code/comctl/lvcheckboxgetset.htm

  Regards.
 
0
 

Author Comment

by:niraj070598
ID: 1465160
Thanks for the pointer. I'll try to get the checkboxes to work. Unfortunately it will work only in the report view type. The user also has to click on the checkbox itself. It would be much better to be able to click on several items in the Icon view mode if I could get that to work. Requiring the user to repeatedly click on a target the size of a checkbox can be a little annoying. A lot of users seem to have trouble with the fine motor control that using a mouse sometimes demands. But I digress.... You answered my question and thanks.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

911 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now