progressbar in visual basic 2008

Опубликовано: 19 Июнь 2026
на канале: Mustafa Ghafour (LearnKurdishWithMisto)
234
1

code :)

private void button1_Click(object sender, EventArgs e)
{
timer1.Start();

}

private void button2_Click(object sender, EventArgs e)
{
timer1.Stop();

}

private void button3_Click(object sender, EventArgs e)
{
timer1.Stop();
progressBar1.Value = 0;

}

private void timer1_Tick(object sender, EventArgs e)
{
if (textBox1.Text != "" && textBox2.Text != "")
{
timer1.Interval = Convert.ToInt16(textBox2.Text);
progressBar1.Increment(Convert.ToInt16(textBox1.Text)+ 000);



}
if (progressBar1.Value == 100)
{
timer1.Stop();
MessageBox.Show("Hello world ! :P");
}
}