Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to detect if a form is open
Message
 
À
20/12/1999 10:38:26
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00305339
Message ID:
00306226
Vues:
27
>That was the first thing I tried, it doesn't work. I have VB6, an MDI form with several child ones open, and .Show doesn't bring the wanted form to the top. In fact, it doesn't do anything. I have the MDIchild property set to true in all forms that display within the MDI parent, except the ones I want to appear modal. Unless there's some other property I'm missing.

Put this in each of your child forms:
Private Sub Form_Activate()
Me.ZOrder 0
End Sub

This command forces the form to appear on top.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform