Heres the scenario: I initially load a splash screen. The splash goes away, and the main application opens, but does not have window focus because a different window that i have opened (like firefox), maintains focus. How do I select this window to have focus? The following did not work:
this.focus();
Selecting/Focusing a window
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Former memberPosted Jun 28, 2007, 12:36 PM EDT
FocusForm newForm = new FocusForm();
newForm.Activate();
newForm is a created reference to the form you want to obtain the focus.