Hi !
I'm looking to a strange problem.
I have an MDI form and this has children. when I look to the order of that children in the MdiChildren's collection this seems to be always the same. I'm using my Dockable Windows and all works fine, but when I'm closing one of this dockable windows then The MDI form gets informed about that In a way I cannot find out,( Control removed seems to be fired by the MDI Fom) how this is done. The result is the order of the active Forms on the screen sometimes chages, sometimes not. It seems to activate that child, which was created first in my MDI as the new top window, independen which Form really was the last active on screen. Anyone knows what could activate an event in the MDI itself so it changes the order of the forms in MdiChildren? ( this seems to be the reason for the activation change )
--------
Now I have written a method to re-arange the forms in the ControlRemoved event delegate of the MDI Form so I get the correct form on top again, but I cannot reorder them in the same way they had been before closing.
Is there a way to read out the Z order in which they had been before closing my DockingPanel ?
Last edited by JonnyPoet; June 5th, 2009 at 08:28 AM.
Jonny Poet
To be Alive is depending on the willingsness to help others and also to permit others to help you. So lets be alive. !
Using Code Tags makes the difference: Code is easier to read, so its easier to help. Do it like this: [CODE] Put Your Code here [/code]
If anyone felt he has got help, show it in rating the post.
Also dont forget to set a post which is fully answered to 'resolved'. For more details look to FAQ's about Forum Usage. BTW I'm using Framework 3.5 and you ? My latest articles : Creating a Dockable Panel-Controlmanager Using C#, Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.