Menu

splash screen winform

Help
shailesh
2009-02-16
2013-04-26
  • shailesh

    shailesh - 2009-02-16

    i want to show splash screen at the start, which is in one task. when user clicks on splash screen or move mouse over splash screen, then splash screen should be closed and it should show other form like MDI form.

    but when i am closing splash screen and starting other task, which show MDI form.
    it closes whole application.

    please help to find the solution

     
    • OVZH

      OVZH - 2009-02-17

      Hello,

      The most simple solution to this problem is just to hide (Visible = false) the splash form instead of closing it. This approach is often used to implement splash windows. Does it suit your needs?

      Regards,
      --
      Oleg Zhukov

       
    • shailesh

      shailesh - 2009-02-18

      i had tried this solution, but with this solution, application doesn't get closed, when i am closing main form.

      application splashscreen remains open, which cannot be closed, when it was hidden.
      regards
      Thanks for solution
      Shaileshbc

       
      • OVZH

        OVZH - 2009-02-18

        Well, in this case you should just handle the Close event of the main form in a way like this:

        private void MainForm_Close(object sender, EventArgs e)
        {
            Application.Exit();
        }

        Does this help?

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.