Hello,
I need to drag a tv node to a pic box, I got this code:
I want the picturebox2 image to change to picturebox1 image when a node is dropped there.Code:Private Sub Inv_ItemDrag(sender As System.Object, e As System.Windows.Forms.ItemDragEventArgs) Handles Inv.ItemDrag If e.Button = MouseButtons.Left Then Inv.SelectedNode.Tag = PictureBox1.Image DoDragDrop(e.Item, DragDropEffects.Copy) End If End Sub Private Sub PictureBox2_DragDrop(sender As System.Object, e As System.Windows.Forms.DragEventArgs) Handles PictureBox2.DragDrop AllowDrop = True PictureBox2.Image = Inv.SelectedNode.Tag End Sub


Reply With Quote
