using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace Progressbar_Project
{
public partial class Form1 : Form
{
public int count = 0;
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
pgbcount.Minimum = 0;
pgbcount.Maximum = 100;
timr.Start();
}
private void timr_Tick(object sender, EventArgs e)
{
if (count <= 100)
{
pgbcount.Value = count;
lblper.Text = count.ToString() + "%";
count++;
//lblper.Text = count.ToString() + "%";
}
else
{
timr.Stop();
}
}
}
}
Comments
Post a Comment