I have a form called main.
When something is processing, I show a new form, called waiting, so that the user knows he has to wait for the processing to end.
The waiting form has a label which contains the waiting text...
In the main form, the function has this code:
this.Enabled = false;
waiting frm_w = new waiting();
frm_w.Show();
//
// the code that does the processing
//
frm_w.Close();
this.Enabled = true;
this.Focus();
The problem is that the waiting form appears, but the label that has the text doesn't appear. the form shows a gray rectangle in the place where the label should be.
Any idea why this happens and how to solve it?
Thank you
When something is processing, I show a new form, called waiting, so that the user knows he has to wait for the processing to end.
The waiting form has a label which contains the waiting text...
In the main form, the function has this code:
this.Enabled = false;
waiting frm_w = new waiting();
frm_w.Show();
//
// the code that does the processing
//
frm_w.Close();
this.Enabled = true;
this.Focus();
The problem is that the waiting form appears, but the label that has the text doesn't appear. the form shows a gray rectangle in the place where the label should be.
Any idea why this happens and how to solve it?
Thank you