Forum Post: RE: PDSOE: Toolbar windows disappear behind main window

  • Thread starter Thread starter Patrick Tingen
  • Start date Start date
Status
Not open for further replies.
P

Patrick Tingen

Guest
Found an explanation myself at stackoverflow.com/.../issue-with-setforegroundwindow-in-net It seems that this is by design to protect users from applications stealing focus. I changed the code to first enable all widgets, then APPLY "ENTRY" to the first widget and then finally run SetForegroundWindow. This will ensure that my application has focus and is thus allowed by Windows to bring the window to the front. I have yet to test it thoroughly but first tests are promising.

Continue reading...
 
Status
Not open for further replies.
Back
Top