private void newOrderButton_Click(object sender, EventArgs e) { SelectForm selectForm = new SelectForm(); Hide(); selectForm.Show(); }
/// <summary> /// Load the next form and hide this form /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void NewOrderButton_Click(object sender, EventArgs e) { //hide this form this.Hide(); //create an object for the next form SelectForm selectForm = new SelectForm(); //point this form to the parent form selectForm.previousForm = this; //show the next form selectForm.Show(); }