Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Listview multiselect without CTRL + Click

Posted on 1998-07-07
2
Medium Priority
?
1,054 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
[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 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] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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 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…
Suggested Courses

670 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