stop form1 flashing into existence

Posted on 2009-02-17
Medium Priority
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
  • 2
  • 2

Expert Comment

ID: 23662704
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

ID: 23662823
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

Accepted Solution

bramsquad earned 150 total points
ID: 23662918
Ahhh, you're looking for a splash screen.  This tutorial is perfect for you...


Author Closing Comment

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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that undeā€¦
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
Suggested Courses
Course of the Month8 days, 17 hours left to enroll

621 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