Solved

Listview multiselect without CTRL + Click

Posted on 1998-07-07
2
959 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

758 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

24 Experts available now in Live!

Get 1:1 Help Now