stop form1 flashing into existence

Posted on 2009-02-17
Last Modified: 2013-12-14
Can anyone tell me how to make form 1 not visible before the form1 load event?  I have visible set to false in there but it flashes as visible for a brief second before it reaches that code snippet?  Thanks
Question by:TheMoog
    LVL 8

    Expert Comment

    If you don't want the form to show than don't show form1...

    Application.Run(new Form1());


    //Application.Run(new Form1());

    If you have stuff that you do in the Form1 load event or constructor I suggest you move it.  Also keep in mind that the App.Run() "keeps the app alive" so to speak, so you'll have a pretty short program if you don't put some more code in your Main() function.



    Author Comment

    Im showing a wlcome screen before form i, theres a slight flicker before the welcome screen draws I trying to open form1 as non visible behind the welcome screen so they fade in, it looks great but the one niggle is a few mliseconds of flicker as form1 creates I thought there may be a place I could set form1 to not visible before the form1 load event
    LVL 8

    Accepted Solution

    Ahhh, you're looking for a splash screen.  This tutorial is perfect for you...

    Author Closing Comment

    Thanks, Its opened up another thought process on how to do it cheers

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from ( Go to that link and select download selenium in the right hand columnThat will then direct you to their downlo…
    A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
    This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
    The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now