I\'m trying to use threads and prevent the program from freezing while the thread is busy. It should show the progress (writing of 0\'s / 1\'s) and not just show the result
You're still performing a single-threaded task, just re-launching it on the UI thread if needed.
for (int i = 0; i < 500; i++){ string text = ""+i; textBox.BeginInvoke((MethodInvoker)delegate() { textBox.Text += text; }); }