Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Order of forms
Message
From
16/06/2006 16:22:34
 
 
To
15/06/2006 15:24:36
General information
Forum:
ASP.NET
Category:
Forms
Title:
Environment versions
Environment:
VB 8.0
Miscellaneous
Thread ID:
01129381
Message ID:
01129654
Views:
11
>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=0507101

Chris
Christopher Bohling, Consultant
http://www.ChristopherBohling.com
Previous
Reply
Map
View

Click here to load this message in the networking platform