private
void
treeView1_MouseDown(
object
sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Right)
{
TreeNode node = treeView1.GetNodeAt(e.X, e.Y);
if (node != null ) // 右键未选中节点,不改变当前选中的节点。VS2005如此。
{
this .treeView1.SelectedNode = node;
}
}
}
{
if (e.Button == MouseButtons.Right)
{
TreeNode node = treeView1.GetNodeAt(e.X, e.Y);
if (node != null ) // 右键未选中节点,不改变当前选中的节点。VS2005如此。
{
this .treeView1.SelectedNode = node;
}
}
}