private void btnCost_Click(object sender, EventArgs e) { this.pnlRed.Height = this.btnCost.Height; this.pnlRed.Top = this.btnCost.Top; controlAccount1 account = new controlAccount1(); MainControl.showControl(account, frmAccountDashboard.ActiveForm); }
public frmAccountDashboard() { InitializeComponent(); this.pnlRed.Height = this.btnCost.Height; controlAccount1 account = new controlAccount1(); MainControl.showControl(account, this); }