public void showMain() { startPage1 = new startPage(this); startPage1.TopLevel = false; startPage1.FormBorderStyle = FormBorderStyle.None; panel1.Controls.Add(startPage1); panel1.Visible = true; startPage1.Show(); }
public MainPage() { InitializeComponent(); main = new GamePage(this); main.TopLevel = false; main.FormBorderStyle = FormBorderStyle.None; panel1.Controls.Add(main); startPage1 = new startPage(this); startPage1.TopLevel = false; startPage1.FormBorderStyle = FormBorderStyle.None; panel1.Controls.Add(startPage1); panel1.Visible = true; startPage1.Show(); }