Hi
I think you may try to handle the DragOver event.
e.g.
TreeNode lastNode = null;
private void treeView1_DragOver(object sender,
System.Windows.Forms.DragEventArgs e)
{
if(lastNode!=null)
lastNode.BackColor=Color.White;
Point pt = ((TreeView)sender).PointToClient(new Point(e.X, e.Y));
TreeNode DestinationNode = ((TreeView)sender).GetNodeAt(pt);
if (DestinationNode!=null)
{
DestinationNode.BackColor = Color.Red;
lastNode = DestinationNode;
}
}
Best regards,
Perter Huang
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.