A
Andy
Hi,
I have a form which is a splash screen. A static method is used by my
main program startup to show the form, which creates the form on a
seperate thread and shows it using Application.Run( splash ).
The problem is when my main form shows and the splash hides, the main
form ends up behind any other window display (such as my web browser or
explorer windows).
I've read this is because the first message pump that ends causes the
application to deactivate, but I haven't been able to find a solution
to this.
I had replaced Application.Run with this loop:
while ( !shouldClose ) {
Application.DoEvents();
}
Where should close is a boolean that indicates if the form should close
or not. (Which is set by another static method called from the main
thread).
Any ideas?
I have a form which is a splash screen. A static method is used by my
main program startup to show the form, which creates the form on a
seperate thread and shows it using Application.Run( splash ).
The problem is when my main form shows and the splash hides, the main
form ends up behind any other window display (such as my web browser or
explorer windows).
I've read this is because the first message pump that ends causes the
application to deactivate, but I haven't been able to find a solution
to this.
I had replaced Application.Run with this loop:
while ( !shouldClose ) {
Application.DoEvents();
}
Where should close is a boolean that indicates if the form should close
or not. (Which is set by another static method called from the main
thread).
Any ideas?