//创建右键菜单
ContextMenuStrip R_Strip = new ContextMenuStrip();
//添加一级菜单
ToolStripMenuItem R_Add=new ToolStripMenuItem("添加一级菜单");
//绑定点击事件 R_Add_Click点击事件自己写一下
R_Add.Click += R_Add_Click;
//创建R_Add的二级菜单
ToolStripMenuItem Second=new ToolStripMenuItem("添加二级菜单");
//绑定单击事件
Second.Click += Second_Click;
//为一级菜单绑定二级菜单
R_Add.Item.Add(Second);
//把一级菜单绑定到右键上
R_Strip.Item.Add(R_Add);