private void 入住记录ToolStripMenuItem_Click(object sender, EventArgs e) { this.panel1.Controls.Clear(); Form5_query1 form51 = new Form5_query1 { TopLevel = false, FormBorderStyle = FormBorderStyle.None }; this.panel1.Controls.Add(form51); form51.Show(); }
private void 入住记录ToolStripMenuItem_Click(object sender, EventArgs e) { if (Program.currentId == "") { MessageBox.Show("请先登录", "提示"); } else { changestyle(); BackgroundImage = Properties.Resources.big; this.panel1.Controls.Clear(); Form5_query1 form51 = new Form5_query1 { TopLevel = false, FormBorderStyle = FormBorderStyle.None }; this.panel1.Controls.Add(form51); form51.Show(); } }