Results 1 to 6 of 6

Thread: Lassooing files in listview

  1. #1

    Thread Starter
    Frenzied Member Blobby's Avatar
    Join Date
    Oct 2001
    Location
    England
    Posts
    1,512

    Lassooing files in listview

    What does a dotted line round a listview item mean? Does it mean its selected? Im still struggling to find out why i get a row selected that i didnt lasso aswell as the lossooed items. it always seems to include the item with the dotted line around it in all my selections and i cant seem to turn it off, even when i set everything to selected=false first.
    There are 3 types of people in this world.........those that can count, and those that can't.

    Blobby

  2. #2
    Registered User Virus00110's Avatar
    Join Date
    Jul 2002
    Location
    Williamsport, PA
    Posts
    290
    Could you either post your code or zip your project and post it.

  3. #3
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Try this...
    VB Code:
    1. Private Sub ListView1_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
    2.    
    3.     If ListView1.HitTest(x, y) Is Nothing Then
    4.         Set ListView1.SelectedItem = Nothing
    5.     End If
    6.    
    7. End Sub

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  4. #4

    Thread Starter
    Frenzied Member Blobby's Avatar
    Join Date
    Oct 2001
    Location
    England
    Posts
    1,512
    Thanks Crptcblade but no joy. As soon as the items are removed from the listview (so the listview is empty), the lasso tool is permanently on! I can move the mouse without clicking a button and the lasso just draws a rectangle wherever i am. I have to click the mouse to turn it off. There must be a command to cancel the lasso but i dont know what it is?
    There are 3 types of people in this world.........those that can count, and those that can't.

    Blobby

  5. #5
    Addicted Member Sully's Avatar
    Join Date
    Nov 2002
    Location
    Lost in the far recesses of one's own mind.
    Posts
    165
    Hey,

    Sorry to ask this here, but what is the lasso tool, how does one implement it?

    JS
    Disclaimer:

    * The preceding message was in no means meant to be critical, mean spirited, insincere, or facetious.

    Disclaimer for disclaimer:

    The preceding disclaimer may in fact be facetious in nature.

    Thanks,
    Jim

  6. #6

    Thread Starter
    Frenzied Member Blobby's Avatar
    Join Date
    Oct 2001
    Location
    England
    Posts
    1,512
    The lasso is what you get in Windows Explorer when you click outside a row and drag the mouse down to create a box around the items you want selected (click and hold mouse then drag).
    It is automatic when u set the property MultiSelect=true on say a listview
    There are 3 types of people in this world.........those that can count, and those that can't.

    Blobby

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width