Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to Create Modern Splash Screen with Progress Bar & timer using C# vscode





Steps to Create Splash Screen in windows app using Csharp :


To create beautifull Modern Splash Screen in c# ,cSharp here are the steps:




1. Create two form first 

2. on the 1 form set FormBorderStyle property none

  • FormBorderStyle : none


3. Now set property in form 1 BackColor to 48, 56, 79

  • BackColor: 48, 56, 79

4. Now input lable and picture box and design as you can..

5. Now Input the progress bar from toolbox (left side) & also input the timer

6. Now your design was ready now we have to code for the progress bar 





1. First on the form1.cs file set timer1.enabled is true on form load event

public Form1()
        {
            InitializeComponent();
            timer1.Enabled = true; // here we have enable timer (start timer)
        }


2. Now initialize the integer with variable

int time = 0;



3. Now on the timer Event just paste the code below in this code timer1 is my timer tool name

private void timer1_Tick(object sender, EventArgs e)
        {

            time++;
            progressBar1.Value = time;  // progress bar value is equals to timer
            if(time == 100)  // when time is 100 then below
            {
                timer1.Enabled = false; // timer false
                var fm2 = new Form2();  // we create object of form 2 here
                fm2.Show(); //we show form 2
                this.Hide(); //here we hide this form 1
                time = 0; 


                // Now if you want to faster load then
            }
        }

Link After Subscribe:



Click On The Button And Subscribe My Youtube Channel To Open Link Then Get Back To The Page...







This post first appeared on The Advantages Of Computer Netwroks, please read the originial post: here

Share the post

How to Create Modern Splash Screen with Progress Bar & timer using C# vscode

×

Subscribe to The Advantages Of Computer Netwroks

Get updates delivered right to your inbox!

Thank you for your subscription

×