private void btn_returns_Click(object sender, EventArgs e) { Form fm = Application.OpenForms["NewCarReturns"]; if (fm != null) { if (fm.WindowState == FormWindowState.Minimized) { fm.WindowState = FormWindowState.Maximized; } fm.BringToFront(); } else { NewCarReturns cr = new NewCarReturns(); cr.Show(); } }
private void button3_Click(object sender, EventArgs e) { Form fm = Application.OpenForms["NewCarReturns"]; if (fm != null) { fm.Close(); } NewCarReturns ncr = new NewCarReturns(); ncr.Show(); // Out of Colour Ink (Uncomment Next Line) //cmb_printerpicked.SelectedIndex = 1; // B&W Printer Down cmb_printerpicked.SelectedIndex = 0; ncr.PrintReturns(cmb_printerpicked.SelectedIndex); Close(); }