private void userListToolStripMenuItem_Click(object sender, EventArgs e) { UserInfoForm ui = new UserInfoForm(); ui.Dock = DockStyle.Fill; this.panel1.Controls.Clear(); this.panel1.Controls.Add(ui); ui.Show(); }
private void button2_Click(object sender, EventArgs e) { UserInfoForm ui = new UserInfoForm(); ui.Show(); }