Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Listview multiselect without CTRL + Click

Posted on 1998-07-07
2
Medium Priority
?
1,085 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 300 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

[Webinar] Cloud Security

In this webinar you will learn:

-Why existing firewall and DMZ architectures are not suited for securing cloud applications
-How to make your enterprise “Cloud Ready”, and fix your aging DMZ architecture
-How to transform your enterprise and become a Cloud Enabler

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
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…
Suggested Courses

916 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