private void button1_Click(object sender, EventArgs e) { int i = 0; for (i = 0; i < 100; i++) { listBox1.Items.Add(i); Thread.Sleep(10); } int j = 0; for (j = 0; j < 100;j++) { listBox2.Items.Add(j); Thread.Sleep(10); } }
for
Thread.Sleep
Thread
Control.Invoke
Control
Dispatcher
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)