Activate window/application
Posted
by LnDCobra
on Stack Overflow
See other posts from Stack Overflow
or by LnDCobra
Published on 2010-04-15T13:29:13Z
Indexed on
2010/04/15
13:33 UTC
Read the original article
Hit count: 217
I have implemented a Splash Screen according to WiredPrairie unmanaged c++ splasher class.
But not when my application loads, my window isn't activated. The user has to click on the login box even thought it is the only window open in my application.
I have tried the following but none of these work.
Topmost = true;
Focus();
Activate();
Is there any way to give my login window focus when the application starts? Sometimes the window behind it has focus! (Visual Studio if run on my machine), Explorer or a different application window on other peoples machines.
Anyone have any idea?
© Stack Overflow or respective owner