private void button_PrintNumber_Click(object sender, EventArgs e) { for (int i = 1; i <= 10; i++) { listBox1.Items.Add(i); Thread backGroundThread = new Thread(DoTime); backGroundThread.Start(); } } private void DoTime() { Thread.Sleep(5000); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)