I have a simple function:
void licz()
{
int result = 0;
for (int i = 0; i < 20; i++)
{
wynik = +i;
textBox1.Text = result.ToString() + Environment.NewLine;
}
MessageBox.Show("Wynik: " + result);
}
And I want, the textBox1 showing everyone result (step by step). Now is showing just finish result, the same as MessageBox (Wynik: 19).
Maybe you should change to this?