I use c# in winform.
Before a very heavy function, I want to show a waiting form to prevent the user. The form opens, but the controls in it are not drawn.
In the following code, waitingForm is a little form, with only a textbox and a progressbar
using (WaitingForm waitingForm = new WaintingForm())
{
waitingForm.Show();
HeavyFunction();
}
I see only two white rectangles, where the controls should appear. Why this happens ?