Results 1 to 4 of 4

Thread: Disable Drag Drop in List view control

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Posts
    2

    Post

    I need to disable drag and drop feature in my list view control. Can somebody help me please?

    Thanks in advance!

  2. #2
    Member
    Join Date
    Jan 2000
    Location
    Quantico, VA, USA
    Posts
    41

    Post

    try setting dragmode property to vbmanual

    ------------------
    To err is human, but to apologize frequently is embarassing.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Posts
    2

    Post

    I have set the property to vbManual, but am still not able to prevent the drag. I have tried to cancel the drag with

    listview1.drag vbCancel

    in the mouseDown, up and move events, still no luck!!!


  4. #4
    New Member
    Join Date
    Feb 2000
    Posts
    3
    You can do it in the listview's mousedown event:

    Private Sub ListView1_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)

    Set ListView1.SelectedItem = ListView1.HitTest(x, y)
    ListView1.Drag vbBeginDrag
    ListView1.Drag vbEndDrag

    End Sub

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