How to Create a Splash Screen in C# Visual Studio

56,816

16

14

Posted

Introduction: How to Create a Splash Screen in C# Visual Studio

Hi, in this tutorial i will show you "how to make a splash screen in c# visual studio windows forms application".

You need:-

1.Visual Studio 2010 / 2013

2.Computer

Note:-

No need of High-end programming ! just a little bit !

Step 1: Creating a Form

First , open visual studio & then create new project and choose "windows forms application" and name your app and click OK.

After that you will see a empty form.

Right click the form and go to the properties and make the form border style to "None"

you will see that he border of your form will be invisible.

Now choose any image you like to have it as your splash screen and then make it your form's background image.

Step 2: Adding Necessary Items

Now you have to add Two items !

1. another form (which will open after your splash screen ends)

2. Timer Control (in Form1 not Form2)

Form2:- Now click the "project" button on the top of the Visual Studio and then select "Add windows Forms..."

and after that add the stuff you like in your second form ! E.g. Like if you are creating a calculator then make the calculator in that second form.

Timer Control:- you can add timer from the tool box on the left side of visual studio where you have to scroll to look for it ! and then drag it to your form ! it will be displayed below your splash screen form.

DO NOT ADD TIMER IN YOUR SECOND FORM !!!!!

NOTE:- you cant add splash screen after creating your whole application !

if you really want than it will be too troublesome ! but it is possible !

Step 3: Time for Coding

Now double click you first form "Splash screen form"

and add this code:-

timeLeft = 10; (the 10 here describes how much seconds your splash screen will be displayed)
timer1.Start();

Now double click the Timer also ! and add these Codes !!

Codes:-

if (timeLeft > 0)
{

timeLeft = timeLeft - 1;

}

else

{

timer1.Stop();

new Form2().Show();

this.Hide();

(codes are in the images also)
If you are still confused then download the source code !!!!

Step 4: Now Test Your Application !

Its time to test ! you just have to click the play button on the top to see how your app works !

You will see Splash screen will appear and then after few seconds your second ACTUAL form will appear !!!!

Step 5: Publish

Now if you are new ! then you may need to know how to publish ! because without publishing you can distribute your app !

click the publish option and go through the steps !!!

and then your app files will be displayed !!!!!!

Tadaaa ! your app is now published and can be distribute anywhere !

Step 6: Still Can't Understand ?

If you still can't understand "how to create a splash screen in C# visual studio"

then download the video !!!! :)

LINK:- http://goo.gl/h7WFZx

Step 7: Extra

Need tweaks ! or other cool apps ! ?

visit my website and have a look at downloads !

Screen Tweaker and Eye Bar applications are newly released !

I create apps by myself ! and distribute them for free !

yet i am focusing on my studies ! after clearing my 9th exams !

i will continue my work !!!!! :)

https://visiondeveloper.webs.com

3 People Made This Project!

Recommendations

  • Spotless Contest

    Spotless Contest
  • Science of Cooking

    Science of Cooking
  • Microcontroller Contest

    Microcontroller Contest
user

We have a be nice policy.
Please be positive and constructive.

Tips

Questions

7 Comments

what is "timeLeft"? My Visual Studio doesn't recognize it.

thanks this is very helpfull for me

thanks this is very helpfull for me

I had reversed the order of my form creation. Here's how I got around it: I simply changed Form1 in main to SplashScreen and it went perfectly!

Screenshot 2014-12-08 19.46.32.png

This one is a bit complicated. Tomorrow I am going to upload a simple version.

Great tutorial. Thanks!