private void tsMnuUsers_Click(object sender, EventArgs e) { try { pnlContext.Controls.Clear(); UserDetailsCtl objUsers = new UserDetailsCtl(this); objUsers.Parent = this; pnlContext.Controls.Add(objUsers); objUsers.Dock = DockStyle.Fill; } catch (Exception exp) { throw exp; } }
private void usersTsButton_Click(object sender, EventArgs e) { try { pnlContext.Controls.Clear(); UserDetailsCtl objUsers = new UserDetailsCtl(this); objUsers.Parent = this; pnlContext.Controls.Add(objUsers); objUsers.Dock = DockStyle.Fill; } catch (Exception exp) { throw exp; } }