private void cToolStripMenuItem1_Click(object sender, EventArgs e) { panel1.Controls.Clear(); AddClient control = new AddClient(); control.Name = "addclient"; control.Dock = DockStyle.Fill; panel1.Controls.Add(control); }
private void cToolStripMenuItem1_Click(object sender, EventArgs e) { panel1.Controls.Clear(); AddClient control = new AddClient(); control.Name = "addclient"; control.Dock = DockStyle.Fill; panel1.Controls.Add(control); control.addBtnSubmitClickHandler(new EventHandler(SubmitClickHandler)); control.addBtnCancelClickHandler(new EventHandler(CloseClickHandler)); }