private void treeView1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e) { IResourceView irv = (IResourceView)e.Node.Tag; if (e.Button == MouseButtons.Right) { treeView1.SelectedNode = e.Node; ResourceContextMenuStrip rc = new ResourceContextMenuStrip(irv); rc.Show(treeView1, e.Location, ToolStripDropDownDirection.Default); } }