private void InnerTreeView_MouseUp(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Right && TreeViewContextMenuStrip != null) { TreeNode node = InnerTreeView.GetNodeAt(e.X, e.Y); if (node is TopicTreeNode) { TreeViewContextMenuStrip.Show(InnerTreeView, e.X, e.Y); } } }
public TreeNode GetTreeNodeOver() { System.Drawing.Point point = mTreeView.PointToClient(Cursor.Position); return(mTreeView.GetNodeAt(point)); }