private void button2_Click(object sender, EventArgs e) { this.acflag = false; Global.MainForm.actimer.Stop(); this.actimer.Stop(); mainMenu = new ContextMenuStrip(); mainMenu.BigButtons(); mainMenu.Font = new Font("Microsoft YaHei UI", 24, FontStyle.Regular, GraphicsUnit.Point, ((byte)(134))); mainMenu.Opening += new CancelEventHandler(cms_Opening); //menuMaxSize = Convert.ToInt32(Math.Round(Convert.ToDouble(bianchang / 3 * 2))); mainMenu.MaximumSize = new Size(480, 480); //menuLocate = Convert.ToInt32(Math.Round(Convert.ToDouble(bianchang / 5.5))); mainMenu.Show(this, 300, 96); }