I'm developing a C# (compact framework) app which and I need to have 3 forms. I can go from form1 (main) to form2, and from form1 to form3. I also want to be able to switch from form2 to form3. Form3 must be always the same (I need to create it when app starts and close it when app ends).
On form1, on "Go to form 2" button
form2.Show(); form2.BringToFront();
On form1, on "Go to form 3" button
form3.Show(); form3.BringToFront();
On form2, on "Back to form 1"
this.Hide();
On form3, on "Back to form 1"
this.Hide();
But how to switch from form2 to form3 ?
Thank you for any help!