public static void BeginStroopTest(string programName, string participantName, char mark, Form form) { try { SendKeys.SendWait("i"); FormExposition formExposition = new FormExposition(programName, participantName, mark); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
public static void BeginStroopTest(string programName, string participantName, char mark, Form form) { try { FormExposition ormExposition = new FormExposition(programName, participantName, mark); ormExposition.StartPosition = FormStartPosition.Manual; ormExposition.Location = Screen.AllScreens[ShowOnMonitor(form)].WorkingArea.Location; SendKeys.SendWait("i"); var dialogResult = ormExposition.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }