private void btnMaximize_Click(object sender, EventArgs e) { if (WindowState == FormWindowState.Normal) { WindowState = FormWindowState.Maximized; resizeControl.Hide(); currentChildForm.SizeChange(); } else if (WindowState == FormWindowState.Maximized) { WindowState = FormWindowState.Normal; resizeControl.Show(); currentChildForm.SizeChange(); } }
public override void SizeChange() { currentChildForm.SizeChange(); }