监听B的DragOver,重置状态,设置状态
Point p = (new Point(e.X, e.Y));
Point point = treeView2.PointToClient(p);
TreeNode node = treeView2.GetNodeAt(point);
Debug.WriteLine("aaa");
if (node != null)
{
treeView2.HideSelection = false;
treeView2.SelectedNode = node;
treeView2.HideSelection = true;
Debug.WriteLine("OVER");
}
这样操作的话,会一直隐藏,不显示出来
@deeeeeed: 将treeView2.HideSelection = true;放到DragDrop事件处理里面