Traversing MDI child forms in Z-order

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top