How to make TreeNode appear selected

  • Thread starter Thread starter Manish Jain
  • Start date Start date
M

Manish Jain

Platform: C# Windows Application/Framework 1.1
----------------------------------------------------

I am implementing Drag' Drop between 2 trees.

Now when I initiate drag and "DragOver" the other tree, I want the nodes on
which I move my mouse to get selected to show where I am going to drop.

I am able to get the TreeNode using mouse coordinates, and when I say
node.TreeView.SelectedNode = node; then I get all the relevent events etc.

But the TreeNode does not appear selected (highlighted in reverse video)
till I click on a node.

Can someone tell me how to achieve that?

Cheers,

Manish
 
Hi

Becasue the tree you want to drop items looses focus you can not see the selection just set HideSelection property to tru

Regards

Dincer Uyav
 
Funny that you should post this today... i'm actually looking at the
same problem.

Hottracking doesn't seem to work when a node is being dragged...
unless i'm missing something.

Anyone have any suggestions?... my drag drop works perfectly, but i
just need to highlight the nodes while the mouseovers are occuring.

SN
 
Back
Top