Splash Screen issues

If this has been addressed, please believe me I apologize for the annoyance, if it has not, then well I must be an idiot, which is probably true, but anyway. I made a splash screen, actually I made a form that I want to use as a splash screen. I get either one of two things happening. The screen comes up and stays up. or it comes up and disappears so fast that you don't even see it. The application is not that big, but I'm using it just.........because it's just the norm. So how on god's green earth can I make this work. Essentially I got the form

splash g = new splash

g.showdialog();

g.close();

when I used the dialog it just stays up there. When I use the .show then it comes up and down so fast that you can't see it. So how do I do this. Yes I'm a noob and I do greatly appreciate your patience and your help with this.

Thank you




Answer this question

Splash Screen issues

  • pragati22

    Thank you very very much. Trying to show my employer that I am more useful doing Applicatoin Dev. Have helped out a couple of times making forms and stuff, but the other guys have gotten the credit. Guess that happens, so with me doing this I am going to hand it off to the big guy and say this is what I can do, just needed the splash screen so that I could blast my name all over it LOL. So I will drop this phase off tomorrow and start on phase two of this project. Adding it a database and making all of that functional, so I'm sure I'll be asking more questions soon.

  • aztec2_step

    Try this:

    In the constructor of your main form:

    Splash g = new Splash();

    public Form1()

    {

    InitializeComponent();

    g.Show();

    Application.DoEvents();

    }

    Then add an event handler for the form's Activated event:

    private void Form1_Activated(object sender, EventArgs e)

    {

    Thread.Sleep(3000);

    g.Close();

    }

    You will need to add a

    using System.Threading;

    directive.


  • Splash Screen issues