private void MAX_Click(object sender, EventArgs e) { PictureBox btn = (PictureBox)sender; //newform.WindowState = FormWindowState.Maximized; Bookkeeping.DoMaximize(this, btn); }
private void MAX_Click(object sender, EventArgs e) { //this.WindowState = FormWindowState.Maximized; //Dashboard newform = (Dashboard)Application.OpenForms["Dashboard"]; PictureBox btn = (PictureBox)sender; //newform.WindowState = FormWindowState.Maximized; Bookkeeping.DoMaximize(this, btn); }