private void BackButton_Click_1(object sender, EventArgs e) { Form f = this.FindForm(); f.Controls.Remove(this); menuScreen ms = new menuScreen(); f.Controls.Add(ms); ms.Focus(); }
public void OnStart() { // Create an instance of the MainScreen menuScreen ms = new menuScreen(); // Add the User Control to the Form this.Controls.Add(ms); }