We've experienced this issue mainly when showing Forms from an unmanaged application (where our managed code is some sort of "plug-in"). Since we only had a HWND of the main form, we used the "SetActiveWindow" Win32 API in the OnClosed-Method of our forms as the workaround.
Also have a look at [1]. Franz [1] http://blogs.msdn.com/oldnewthing/archive/2004/02/27/81155.aspx > -----Ursprüngliche Nachricht----- > Von: Discussion of advanced .NET topics. [mailto:ADVANCED- > [EMAIL PROTECTED] Im Auftrag von Jason Nah > Gesendet: Donnerstag, 06. Dezember 2007 05:19 > An: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM > Betreff: [ADVANCED-DOTNET] Form Z Order Problem > > Howdy Again, > I have another strange problem. > > Ok... the issue comes from closing certain dialogs. After closing them, > I > find that the application flicks behind some other random window. > > Does anybody know: > 1. Why closing an owned window would caused the owner to go behind > another > window? > 2. How to stop this? > > -- > Cheers, > Jason > > =================================== > This list is hosted by DevelopMentor® http://www.develop.com > > View archives and manage your subscription(s) at > http://discuss.develop.com =================================== This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com