By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,064 Members | 1,445 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,064 IT Pros & Developers. It's quick & easy.

splash screen... What and how it gets loaded ?

100+
P: 153
I have seen several applications showing one splash screen in the begining which has a progress bar telling the status of loading.

SO what gets loaded actually ?

Please give one practical and easy example.

Maybe this..
Suppose i have one main form and that form has instances of 3 other forms.
The three other forms are shown and hidden by 3 buttons.

when the main form gets loaded , i want the 3 instances to be created, which maybe time consuming.

So how would i make the splash screen ?
Jan 2 '09 #1
Share this Question
Share on Google+
2 Replies


P: 37
Check out splash screens from following locations...

CodeProject: A Pretty Good Splash Screen in C#. Free source code and programming help

best of luck
Jan 2 '09 #2

vekipeki
Expert 100+
P: 229
It is nothing more than a Windows form which can be shown quickly while some other operation needs to be done, just to notify the user that the program is already running.

A simple solution such as this will work:

Expand|Select|Wrap|Line Numbers
  1. private void MainForm_Load(object sender, EventArgs e)
  2. {
  3.     // show the splash form
  4.     SplashForm splash = new SplashForm();
  5.     splash.Show();
  6.  
  7.     // this is a long operation
  8.     for (int i = 0; i < 10; i++)
  9.     {
  10.         // do some work
  11.         System.Threading.Thread.Sleep(500);
  12.     }
  13.  
  14.     // close the splash
  15.     splash.Close();
  16.  
  17.     // bring the MainForm to front
  18.     this.WindowState = FormWindowState.Normal;
  19. }
There is a lot of open-source solutions for a splash screen, for example at CodeProject, so you can try searching there also.

Oops, I didn't see the previous answer, sorry! :)
Jan 2 '09 #3

Post your reply

Sign in to post your reply or Sign up for a free account.