How to Create Modern Splash Screen with Progress Bar & timer using C# | Visual Studio Tutorials Let's Know ...
You can also check on my site :
Download Source Code now : https://rb.gy/knadrb
Code for Modern Splash Screen with Progress Bar & timer using C#,Csharp vscode
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
}
}
On this page of the site you can watch the video online How to Create Modern Splash Screen with Progress Bar & timer using C# | Visual Studio Tutorials with a duration of hours minute second in good quality, which was uploaded by the user Nirav Parmar 02 November 2021, share the link with friends and acquaintances, this video has already been watched 285 times on youtube and it was liked by 3 viewers. Enjoy your viewing!