>I'm looking for something in Visual Basic 2005 that is comparable to z-order in Visual Foxpro. I need a reliable way to know the order of forms or a way to know that one form is on top of another.
Rod,
There is an off-chance that these properties/methods would be useful to you:
Application.OpenForms (returns FormCollection)
Form.OwnedForms (returns an array of forms owned by the current one)
Form.MDIChildren (returns an array of MDI child forms)
Form.TopMost
Control.BringToFront() (inherited by Form; like VFP's Form.ZOrder(0))
Control.SendToBack() (inherited by Form; like VFP's Form.ZOrder(1))
Control.UpdateZOrder() (inherited by Form)
See also:
http://www.code-magazine.com/Article.aspx?quickid=0507101Chris