private void button2_Click(object sender, EventArgs e) { this.Hide(); var fitterForm = new FitterForm(); fitterForm.ShowDialog(); this.Close(); }
private void Fitterbtn_Click(object sender, EventArgs e) { this.Hide(); FitterForm form = new FitterForm() { Location = this.Location, StartPosition = FormStartPosition.Manual }; form.FormClosing += delegate { this.Show(); }; form.Show(); }