Screen hidden after ShowDialog if other app gets in front before closing

  • Thread starter Thread starter Hank
  • Start date Start date
H

Hank

In my main start form in the load event I present a login screen via
ShowDialog. With the login screen displaying, I then open the Today screen.
I click on my app's start icon to bring the app back up, displaying the
login screen. I login successfully and the main start form normally would
show, only since I had opened the Today screen on top of it while the login
screen was showing, it doesn't show. I've tried runing an additional Show()
method after the login closes, Refresh, Invalidate, you name it, to no
avail.

Any suggestions?

Hank
 
Try pinvoking SetForegroundWindow (there is an example on Peter Foot's blog)

Cheers
Daniel
 
Back
Top