P
pincro
I am trying to append text to a textbox while in a loop.
My problem is that the text is written only after the loop completes.
How can I write to the textbox while in the loop?
Here is a sample...
for (int a = 0; a < 500; a++)
{
textBox1.Text += a.ToString() + Environment.NewLine;
}
My problem is that the text is written only after the loop completes.
How can I write to the textbox while in the loop?
Here is a sample...
for (int a = 0; a < 500; a++)
{
textBox1.Text += a.ToString() + Environment.NewLine;
}