private void btnProfile_Click(object sender, EventArgs e) { this.pnlRed.Height = this.btnUsers.Height; this.pnlRed.Top = this.btnUsers.Top; controlUser user = new controlUser(); MainControl.showControl(user, frmAdminDashboard.ActiveForm); }
public frmAdminDashboard() { InitializeComponent(); this.pnlRed.Height = this.btnUsers.Height; controlUser user = new controlUser(); MainControl.showControl(user, this); }