Results 1 to 3 of 3

Thread: Drag/Drop With FileListBox

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2000
    Posts
    20

    Question

    Anyone know how to implement drag/drop between two FileListBox's ????

    OleDragDrop??? How???

  2. #2
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    Code:
    'From 1 to 2
    Dim StartDrag As Boolean
    Private Sub List1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
        StartDrag = True
        strtemp = List1.Text
    End Sub
    Private Sub List2_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
        If StartDrag = True Then
            List2.AddItem List1.Text
            List1.RemoveItem List1.ListIndex
        End If
        StartDrag = False
    End Sub
    That will allow you to more items from List1 to List2. Simply modify for further use.


    Gl,
    D!m
    Dim

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Sep 2000
    Posts
    20
    Thanks Dim.... This works... I was actually trying to use the file control to try drag/drop with.

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