How to make the transition from one form to another in Windows Forms?

Hi toaster!
Learn C#, you want to write a small application in Windows Forms, I do not know who to consult, I hope for a helping hand here.
We want to make sure to create форма1, click on her button, форма1 removed (via Dispose, and not using Hide) and opened форма2. How do I make it competently to implement? Create 2 designer формы1 or in the button1_Click? keep a reference to 2 in форме1? or what?
July 12th 19 at 17:32
1 answer
July 12th 19 at 17:34
Apparently, before running the program in the starting you need to choose what form in the program continue to work?

Open The Program.cs and before the lines...
Application.Run(new MainForm());

... insert a call to your формы1 (ShowDialog), and already from the results of (Form.DialogResult) that she will return, start the application using the desired shape.
Cool. Thank you :) - Blanca.Powlowski commented on July 12th 19 at 17:37

Find more questions by tags C#