I'm trying to test something to see if its functionally possible, and am having a little trouble with drag events...
I basically want to draw a line between two TreeNode entities, contained within two seperate Treeviews.
I can override the Paint method and draw a link between the last selected Node and the current mouse position (set on the Forms MouseMove), but this only works when I'm not dragging/dropping.
The functionality I need, is MouseDown over a node, start dragging to other treeview, a line is drawn from the edge of the Treenode following the mouse, then when releasing the mouse on another treeview, this line attaches to it's bounding box too.
Does anyone have any suggestions as to which Control's events I need to be using, as it's feeling that I can't quite do it in the way I expected...
Thank you!
I basically want to draw a line between two TreeNode entities, contained within two seperate Treeviews.
I can override the Paint method and draw a link between the last selected Node and the current mouse position (set on the Forms MouseMove), but this only works when I'm not dragging/dropping.
The functionality I need, is MouseDown over a node, start dragging to other treeview, a line is drawn from the edge of the Treenode following the mouse, then when releasing the mouse on another treeview, this line attaches to it's bounding box too.
Does anyone have any suggestions as to which Control's events I need to be using, as it's feeling that I can't quite do it in the way I expected...
Thank you!
Comment