分类:
2009-02-04 10:24:37
chinaunix网友2009-03-25 17:08:44
private void tvRole_MouseUp(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Right && tvRole.SelectedNode != null) { this.contextMenuTVRole.Show(tvRole, e.X, e.Y); } } private void tvRole_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Right) { tvRole.SelectedNode = tvRole.HitTest(e.Location).Node;