The answer is: in your
Main
method (entry point), you have something like:
Application.Run(new Form1());
Replace it to
Form2
. This call defines what form is the main one.
However, this is not so simple. You don't explain what exactly do you want, and that could make a big difference. What happens if you show other forms? The main form is still main: when you close it, you exit the whole application. If you want this behavior on other forms, you would need to use
Application.Exit
. If you want to keep a main form main, and show other forms at the same time, this is not a problem.
But if your goal is to show one form at a time (a kind of a wizard behavior), you could do one of the two things: 1) repeat the code shown above in the
Main
method for all forms you want; in this case, you should calculate what to do next, depending on some "result" of the operation on a previous form; such "semi-sequential" scenario will be very limited anyway; 2) use only one form; in this case, what you planned to be forms should be different panels; show one panel at a time on the same form, making other panels hidden.
—SA