private void GoButton_Click(object sender, EventArgs e) { string name = NameBox.Text; string plane = PlaneBox.Text; // System.Diagnostics.Debug.WriteLine(name); // System.Diagnostics.Debug.WriteLine(plane); this.Hide(); var wf = new WorkOrderForm(name, plane); // set new close event here wf.FormClosed += (s, args) => this.Close(); wf.Show(); }