Ok, form1 is my “intro”. I need form1 to close and form2…When it closes, the Whole application closes. I am new at this, so i do not know how to explain my problems well…If you have any question..please ask… 🙂
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Another solution which I use when I need to have a splash screen before showing the main form is to use this solution:
In the Main function of your Program class you usually have something like that:
The Application.Run bind the application to a form so that when the form closes, the application exit.
If you want to show form 2 before form 1, you can do this:
This new code will show form2. and after you close form2, it will show form1. Closing Form1 will exit the application.
Usually the Splash window is created in another thread, leaving the main thread loading the data it needs.