still on treeview drag drop

User avatar
sal21
PlatinumLounger
Posts: 4351
Joined: 26 Apr 2010, 17:36

still on treeview drag drop

Post by sal21 »

possible to delete the node(red arrow) after i drag and pasting in the position of the black arrow?

no sense to remain the red node, in old position...

test code

Code: Select all

Private Sub TreeView1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)

    Dim ND As Node
    With Me.TreeView1
        Set ND = .HitTest(X, Y)
        If Not ND Is Nothing Then
            'Debug.Print ND.Text
            .Drag vbBeginDrag
        End If
    End With

End Sub

User avatar
HansV
Administrator
Posts: 78412
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: still on treeview drag drop

Post by HansV »

There is no need to post the same question three times!

I have no idea, sorry.
Best wishes,
Hans