Phew! Solved it after some more digging and thinking..
Add this to your dragover sub:
Private Sub TreeView2_OLEDragOver(data As Object, Effect As Long, Button As Integer, Shift As Integer, X As Single, Y As Single, State As Integer)
Dim nodNode As node
Set nodNode = treeview2.HitTest(X, Y)
If nodNode Is Nothing Then
Debug.Print ("Nothing"
Else
If Not nodNode.Index = treeview2.Nodes.count Then nodNode.Next.EnsureVisible
If Not nodNode.Index = 1 Then nodNode.Previous.EnsureVisible
nodNode.Selected = True
nodNode.EnsureVisible
End If
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.