views:

1188

answers:

1

I have a form with 2 tree views, the user can drag and drop a node from one to another. After a node has been dragged and dropped, I change the color[highlight] of the source node in the DragDrop event handles.The color of the node changes fine.

But when the users hovers the mouse over the source tree view after that, it flickers and the highlighting I had done dissappears, reverting to the original color.

Im not handling any other event/I dont reload the treeview/ Im not changing the color.

From my understanding of the MSDN documentation, I dont see any Refresh or Repaint type events.

+1  A: 

Simply call TreeView.Invalidate() method to force tree view to repaint.

Artem Tikhomirov