Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7949189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T01:55:28+00:00 2026-06-04T01:55:28+00:00

Ok, form1 is my intro. I need form1 to close and form2…When it closes,

  • 0

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… 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T01:55:30+00:00Added an answer on June 4, 2026 at 1:55 am

    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:

        [STAThread]
        static void Main(string[] ps)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
    
        }
    

    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:

        [STAThread]
        static void Main(string[] ps)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Form1 splash = new Form1();
            splash.ShowDialog();
            Application.Run(new Form2());
        }
    

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Consider two forms: form1 and form2 form1 calls form2 : form2 frm = new
I need to get the value from the parent form into the child; not
To recreate this behaviour, you need to create a pop-up form with the following
Not sure if this question is going to make sense or not be here
This is my second foray into Ajax and I'm not quite sure how to
In (Form1) i have a setting button, when i click on it a new
I need to convert all of the following forms into .NET Uri object: hello.world
I need to cast a generic VBA form control object into a ComboBox object
I need to add a values (if anything coming into function when form is
I need to Read files form Linux , copy them into the another computer(Windows

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.