I'm not sure...
Possible to drag IMPARATO SALVATORE (entire row from listview) and insert over the the item (in rectangle) of treeview?
Impossible based my knoledgement
drag from listview to treeview
-
- PlatinumLounger
- Posts: 4353
- Joined: 26 Apr 2010, 17:36
drag from listview to treeview
You do not have the required permissions to view the files attached to this post.
-
- Administrator
- Posts: 78416
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: drag from listview to treeview
It is possible - see VBA Drag Drop From TreeView to ListView & ListView to TreeView (ActiveX Controls)
Best wishes,
Hans
Hans
-
- PlatinumLounger
- Posts: 4353
- Joined: 26 Apr 2010, 17:36
Re: drag from listview to treeview
GREAT progress i think...HansV wrote: ↑20 Jul 2021, 10:38It is possible - see VBA Drag Drop From TreeView to ListView & ListView to TreeView (ActiveX Controls)
Code: Select all
Private Sub ListView1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = vbLeftButton Then
With Me.ListView1
Set .SelectedItem = .HitTest(X, Y)
.DragIcon = LoadPicture("C:\Lavori_Vb6\HOTEL\IMG\" & "DRAGMOVE.CUR")
.Drag vbBeginDrag
End With
End If
End Sub
i need to drag entire row set, for dragging, similar:
...
Set ITMX = .HitTest(X, Y)
ITMX .ListSubItems(1).Text & "-" & ITMX .ListSubItems(2).Text & "-" & ITMX .ListSubItems(3).Text & "-" & ITMX .ListSubItems(4).Text
....
i hope understand me
You do not have the required permissions to view the files attached to this post.
-
- Administrator
- Posts: 78416
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: drag from listview to treeview
Do you want to add a node to the treeview when dropped?
Best wishes,
Hans
Hans
-
- PlatinumLounger
- Posts: 4353
- Joined: 26 Apr 2010, 17:36
-
- Administrator
- Posts: 78416
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
-
- PlatinumLounger
- Posts: 4353
- Joined: 26 Apr 2010, 17:36