A
AlexGray
Hi,
I created a blank Form with one Label, and the Label's text says
"Loading... Please wait.". I display this form in Main() with Show()
while i do some lengthy initialization stuff (ie loading files), but
the Label appears transparent! I can see through to my desktop where
the Label control is. But, if i display this form with ShowDialog(),
it displays the label fine. Am I missing something here?
Here is the code:
private static void Main()
{
LoadingForm lf = new LoadingForm();
lf.Show(); // The label doesn't get displayed!
// Do length, time consuming stuff ...
lf.Close();
}
But if i do this, the Label gets displayed fine:
private static void Main()
{
LoadingForm lf = new LoadingForm();
lf.ShowDialog(); // The label gets displayed fine!
// Do length, time consuming stuff ...
}
any ideas why this could be happening?
-alex-
I created a blank Form with one Label, and the Label's text says
"Loading... Please wait.". I display this form in Main() with Show()
while i do some lengthy initialization stuff (ie loading files), but
the Label appears transparent! I can see through to my desktop where
the Label control is. But, if i display this form with ShowDialog(),
it displays the label fine. Am I missing something here?
Here is the code:
private static void Main()
{
LoadingForm lf = new LoadingForm();
lf.Show(); // The label doesn't get displayed!
// Do length, time consuming stuff ...
lf.Close();
}
But if i do this, the Label gets displayed fine:
private static void Main()
{
LoadingForm lf = new LoadingForm();
lf.ShowDialog(); // The label gets displayed fine!
// Do length, time consuming stuff ...
}
any ideas why this could be happening?
-alex-