Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.basic.visual.misc > #237

Re: ListView Selection

From ralph <nt_consulting64@yahoo.net>
Newsgroups comp.lang.basic.visual.misc
Subject Re: ListView Selection
Date 2011-06-11 10:29 -0500
Organization Aioe.org NNTP Server
Message-ID <i327v6l72iu76smajc4iapestn7rvcmkbc@4ax.com> (permalink)
References <BmGIp.10283$w86.6225@newsfe22.ams2>

Show all headers | View raw


On Sat, 11 Jun 2011 10:17:10 +0100, "Ivar"
<ivar.ekstromer000@ntlworld.com> wrote:

>Hi all.
>
>Using VB6 with Common controls 6
>Got a Listview in report mode with 6 columns, a few hundred rows, column 
>headers, Multi selection and Full Row Select
>When it comes to selecting items with a left click, I would like the 
>listview to work as if the Ctrl key is held down but without holding the key 
>down.
>Is there an easy way to do this?
>Current thought is to put a flag in each list item and toggle the flag on 
>each item click, but this would mean looping through the list items 
>collection setting each ones selected property each time a list item is 
>clicked.
>Is there a better way?
>

How dymanic is your ListView? (ie, how often does the list change
during use?)

Some have half-boiled suggestions ...
You might create an associated array and use it to resolve the "flag".
You might wrap the ListView in a UserControl and capture Click and
translate.

Back to comp.lang.basic.visual.misc | Previous | NextPrevious in thread | Find similar


Thread

ListView Selection "Ivar" <ivar.ekstromer000@ntlworld.com> - 2011-06-11 10:17 +0100
  Re: ListView Selection ralph <nt_consulting64@yahoo.net> - 2011-06-11 10:29 -0500

csiph-web