myTreeView.MouseClick+=newMouseEventHandler(myTreeView_MouseClick); voidmyTreeView_MouseClick(objectsender,MouseEventArgse) { myTreeView.ContextMenuStrip=null; TreeNodeselectNode=myTreeView.GetNodeAt(e.X,e.Y); if(selectNode.Level==0) { myTreeView.