Traversing MDI child forms in Z-order

  • Thread starter Thread starter David Razzetti
  • Start date Start date
D

David Razzetti

How do you do this?
Given an MDI parent form containing a number of child
forms, how does one walk a list of the child forms in
ascending z-order? I'm looking to save the z-order list
when the application is closed so that it can be restored
when the application is next opened.
The Form.MdiChildren collection appears to be presented in
the order of creation of the child forms, not the z-order.
I haven't found anything else that allows this to be done,
short of stepping out into Interop land and using
GetNextWindow.
 
Back
Top