1. As soon as my application starts I display a splash screen on a different thread whilst the application sets up the environment for the user to login.
2. Now, suppose I have three open applications opened, with their respective icons showing on the task bar.
3. After I've finished the background work, I terminate the splash screen thread and display the logon screen.
4. The problem I am currently facing is that the focus is no longer on my application but on one of the open applications in the task bar.
5. The way to force the focus back to the application is by clicking on the login screen or by clicking the application icon in the task bar.
My question: how can I return the focus to my application after I've finished with the Splash screen thread, so the user can type his/her loging details without manually having to make the application active?
I have tried to set the IsBackground property of the splash screen thread to True. Unfortunately it didn't make any difference.
Thank you very much for any help.
2. Now, suppose I have three open applications opened, with their respective icons showing on the task bar.
3. After I've finished the background work, I terminate the splash screen thread and display the logon screen.
4. The problem I am currently facing is that the focus is no longer on my application but on one of the open applications in the task bar.
5. The way to force the focus back to the application is by clicking on the login screen or by clicking the application icon in the task bar.
My question: how can I return the focus to my application after I've finished with the Splash screen thread, so the user can type his/her loging details without manually having to make the application active?
I have tried to set the IsBackground property of the splash screen thread to True. Unfortunately it didn't make any difference.
Thank you very much for any help.