Solved

Listview multiselect without CTRL + Click

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

820 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