private void toolStripButton2_Click(object sender, EventArgs e)
 {
     this.panel1.Controls.Clear();
     yang.FormUserShow formUserShow = new FormUserShow();
     formUserShow.FormBorderStyle = FormBorderStyle.None;
     formUserShow.TopLevel        = false;   //指示子窗体非顶级窗体
     this.panel1.Controls.Add(formUserShow); //将子窗体载入panel
     formUserShow.Show();
 }
Exemple #2
0
 private void button2_Click(object sender, EventArgs e)
 {
     yang.FormUserShow userShow = new FormUserShow();
     this.Hide();
     userShow.Show();
 }
 private void 查询用户ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     yang.FormUserShow formUserShow = new FormUserShow();
     formUserShow.Show();
 }