473,395 Members | 1,639 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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

153 100+
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
2 1359
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
229 Expert 100+
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

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

Similar topics

3
by: Maileen | last post by:
Hi, I have a module in which are define 2 forms as below : '------ Module Module1 Public MyMain As New FMain Public MySplash As New FSplash Public Sub Main() MySplash.Show()
3
by: Eric A. Johnson | last post by:
In a new project I'm creating, I have my first form that loads being used as a splash screen, with a timer that activates after 5 seconds. I then want the main form to load. However, it isn't...
4
by: Graham Charles | last post by:
Hello, I'm finding that if I set the "Cancel" property during the AppStartup event, the application's Splash form remains loaded. A call to the Close property of the SplashForm at that point...
7
by: Bob | last post by:
I have a winforms app written in Vs2005 Vb.Net, The setiings are to Enable the application Framework and I defined a splashform. Works fine if no errors occur. I do a checking on the mainform load...
1
by: Sanjay | last post by:
i wanna develop a splash screen in my windows application using c#.While splash sreen appears at background application componets should gets loaded as soon as component or dependencies gets...
10
by: =?Utf-8?B?UmljaGFyZCBCeXNvdXRo?= | last post by:
Hi In my app I have a SplashScreen, a login form and a main form. On launching the app, I'd like to show the SplashScreen while reading config files and attempting a database connection. I show...
1
by: BRAHM | last post by:
I am using this code to set up the splash screen startup time. Protected Overrides Function OnInitialize( _ ByVal commandLineArgs As _ System.Collections.ObjectModel.ReadOnlyCollection(Of...
1
by: BRAHM | last post by:
I am using this code to set up the splash screen startup time. Protected Overrides Function OnInitialize( _ ByVal commandLineArgs As _ System.Collections.ObjectModel.ReadOnlyCollection(Of...
0
by: Paulson | last post by:
Hi all I am making a desktop(windows) Application using vb.net.The problrm is I cannot close the Splash screen in the splash screen I am activating the main form.Once this is done I close the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.