1.可以用多线程做
private void Form1_Load(object sender, EventArgs e)
{
Thread t = new Thread(new ThreadStart(LoadForm));
t.Start();
}
private void LoadForm()
{
for (int i = 0; i < 9; i++)
{
Thread.Sleep(1000);
this.Invoke(new MyDelegate(SetRich), i.ToString());
}
}
delegate void MyDelegate(string str);//定义委托
private void SetRich(string str)//委托
{
textBox1.Text = str;
}
2.还可以用timer控件