loading

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

<p>I use ms vs 2015. it doesn't know the keyword &quot;timeLeft&quot;, so I didn't use it in my code.</p>
<p>Hi i have also found one good example here ...<br>&lt;a href=&quot;http://androidexample.com/Splash_screen_-_Android_Exampl<br>e/index.php?view=article_discription&amp;aid=113&amp;aaid=135&quot;&gt;http://<br>androidexample.com/Splash_screen_-_Android_Example/index<br>.php?view=article_discription&amp;aid=113&amp;aaid=135&lt;/a&gt;</p>
<p>what is &quot;timeLeft&quot;? My Visual Studio doesn't recognize it.</p>
<p>It is very useful and i have added a loader to that splash screen</p>
<p>thanks for the idea of putting GIF. Great tutorial!</p>
<p>you are welcome</p>
<p>Yes ! its great to add loaders ! Just simply use (.GIF) images and add them in pictureBox ! If you need cool loaders like spinners, circles, country flags etc....</p><p>Visit Here :- <a href="http://preloaders.net/" rel="nofollow">http://preloaders.net/ </a> Its an awesome website ! :) </p><p>HOPE THAT HELPS !</p>
<p>Thank You for that. That helped my a lot... Thanks!</p>
<p>thanks this is very helpfull for me</p>
<p>thanks this is very helpfull for me</p>
<p>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!</p>
This one is a bit complicated. Tomorrow I am going to upload a simple version.
<p>Great tutorial. Thanks!</p>
My pleasures ! :)

About This Instructable

49,640views

16favorites

Bio: Just a little programmer ! Fun never ends in my life ! Everyday, starts with a new twist ! So facing it with a smile and that makes ... More »
More by SafeerAhmedAbro:How to create a simple power control application for desktop How to make a C# application which turns your screen into a cracked one How to add custom icon and long name to your CD/DVD or USB flash drive 
Add instructable to: