Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Listbox selected items count


Reply
 
Thread Tools Display Modes
  #1  
Old 05-23-2011, 12:49 PM
opholi opholi is offline
Newcomer
 
Join Date: Oct 2008
Posts: 5
Default Listbox selected items count


Hi everybody,

Is there a way to have a listbox selected items count on the mousemove event i.e when you hold the left mouse button and you move the mouse to select multiple elements ?
The SecCount property of the listbox is only updated on the MouseUp event.

Thanks in advance for all your tips

Opholi
Reply With Quote
  #2  
Old 05-24-2011, 04:48 AM
surfR2911 surfR2911 is offline
Contributor
 
Join Date: Oct 2009
Posts: 719
Default ListBox Mousemove MultiSelect with SelCount

I'm not sure this is what you are looking for, but I've attached a working demo below.

The other API way to mouse select is here.

Personally I would be looking at also using the Ctrl and Shift keys to control non-sequential selections as well as being able to deselect items as well...but I guess this can get you started.
Attached Files
File Type: zip ListBox_MouseMove_MultiSelect.zip (2.1 KB, 5 views)
Reply With Quote
  #3  
Old 06-08-2011, 01:58 AM
opholi opholi is offline
Newcomer
 
Join Date: Oct 2008
Posts: 5
Default

Thanks a lot for your answer : this is exactly what I need
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->