T
Terry Holland
Im writing my first Drag n Drop code Treeview in a WinForm application.
If hunted around and the following code
Private TreeView1_DragDrop(ByVal sender As Object, ByVal e As
System.Windows.Forms.DragEventArgs) Handles TreeView1.DragDrop
Label1.Text = TreeView1.GetNodeAt(e.X, e.Y).FullPath
End Sub
This displays the FullPath of the node that the mouse is over when the left
mouse button is released.
What I want to do is determine which node the mouse is over whilst the mouse
is moving. I want to do this because, based on the node contents, I need to
change the DragDropEffects. I dont seem to be able to accurately determine
this.
Ive tried picking up the co-ords during mouse move but the location is not
updated whilst in drag mode.
Im sure this should be quite a simple thing to do but I'd appreciate some
sample code to get me on my way
Thanks
Terry
If hunted around and the following code
Private TreeView1_DragDrop(ByVal sender As Object, ByVal e As
System.Windows.Forms.DragEventArgs) Handles TreeView1.DragDrop
Label1.Text = TreeView1.GetNodeAt(e.X, e.Y).FullPath
End Sub
This displays the FullPath of the node that the mouse is over when the left
mouse button is released.
What I want to do is determine which node the mouse is over whilst the mouse
is moving. I want to do this because, based on the node contents, I need to
change the DragDropEffects. I dont seem to be able to accurately determine
this.
Ive tried picking up the co-ords during mouse move but the location is not
updated whilst in drag mode.
Im sure this should be quite a simple thing to do but I'd appreciate some
sample code to get me on my way
Thanks
Terry