日期:2014-05-17 浏览次数:20861 次
private int i = 0;
private void button1_Click(object sender, EventArgs e)
{
while (true)
{
i++;
this.label1.Text = i.ToString();
}
}
private int i = 0;
private void button1_Click(object sender, EventArgs e)
{
Thread tread = new Thread(() =>
{
while (true)
{
i++;
this.Invoke(new Action(() =>
{
this.label1.Text = i.ToString();
}));
}
});
}