Traversing MDI child forms in Z-order

Traversing MDI child forms in Z-order

Post by David Razz » Thu, 06 Nov 2003 00:47:26


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.
 
 
 

1. need to control MDI Child Window Z-Order

2. MDI question - how to call other MDI child forms from a MDI chilid form?

Hi all. I have a MDI child form that is a systems maintenance form. I have
7 buttons that will be used to call 7 lookup table maintance forms. My code
to call the lookup table child forms from the child form is the problem.
How do I code it?
The MainFrame.vb is the MDI container. I tried setting that as the MdiParent
but no joy... Obviously I can't use .Me as .Me is a child form also.. So
how do I do this?

Thanks in advance..

Robert

Here is the one that calls the maintence form for Color:

Private Sub btnColor_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnColor.Click

Dim frmCOL As New frmColorMaint

frmCOL.MdiParent = GRS2.MainForm <------- this is the MainFrame.vb
that is the MDI container

frmCOL.Show()

End Sub

3. MDI - how to open a child from a child within MDI parent form?

4. Q: MDI Child Forms in a DLL, how to bring em up in the MDI Form?

5. MDI Child Forms in a DLL, how to bring em up in the MDI Form?

6. Form opening a form opening another form : z-order problem

7. MDI Z-order issue

8. Calling a method in one MDI child from another MDI child

9. calling an mdi child from an mdi child

10. MDI child problem (switching between MDI children)

11. MDI - how to open a child from a child within MDI parent?

12. Access control of a mdi child from mdi child

13. How to open MDI Child from within another MDI Child?

14. Events bewteen and MDI parant and an MDI child form

15. Mdi Child Form - Limiting Placement Within Mdi Parent