Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15279

TREEVIEW delete the node from old position

$
0
0
possible to delete the old node after i drag and pasting in the new position?

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

test code
Code:

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


Viewing all articles
Browse latest Browse all 15279

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>