aidun <33
❔ Progress bar value from 0 to 100 over 3 seconds for my splash screen
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Drawing.Text;
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
using System.Reflection.Emit;
namespace WindowsFormsApp2
{
public partial class SplashScreen : Form
{
Point lastPoint;
public SplashScreen()
{
InitializeComponent();
}
private void SplashScreen_Load(object sender, EventArgs e)
{
timer2.Start();
}
private void timer1_Tick(object sender, EventArgs e)
{
this.Close();
}
private void timer2_Tick(object sender, EventArgs e)
{
if (progressBar1.Value < 100)
{
progressBar1.Value += 1;
}
else
{
timer2.Stop();
}
}
}
}
62 replies