I make new project and simplified it to check if this bug is real, and this is my code:
private void button1_Click(object sender, EventArgs e)
{
for (int i = 0; i < 10; i++)
{
groupBox1.Height += 1;
Thread.Sleep(100);
}
}
private void button2_Click(object sender, EventArgs e)
{
for (int i = 0; i < 10; i++)
{
textBox1.Height += 1;
Thread.Sleep(100);
}
}
Put on form 2 buttons, groupBox and textBox, and watch how textBox smoothly change between iterations, and groupBox change after loop ends. Why this is happening?
I tested it on .NET 2.0 and 3.5 - same effect.