private void 往期账目ToolStripMenuItem_Click(object sender, EventArgs e) { this.panel1.Controls.Clear(); Form5_query2 form52 = new Form5_query2 { TopLevel = false, FormBorderStyle = FormBorderStyle.None }; this.panel1.Controls.Add(form52); form52.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_query2 form52 = new Form5_query2 { TopLevel = false, FormBorderStyle = FormBorderStyle.None }; this.panel1.Controls.Add(form52); form52.Show(); } }