Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Centering form inside a MDI form
Message
 
À
30/03/2001 10:50:21
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00490334
Message ID:
00490351
Vues:
8
>Using VB6.
>
>My app has a MDI form that is opened with WindowState = 2. Another form called menu is opened inside the MDI form.
>
>How can I make the menu form open up centered in the MDI form? I tried placing Me.StartUpPosition = 1 in the menu form's LOAD(). However, when I do this, I get a VB error when running the form. The message starts with:
> Function or interface marked as restricted
>
>How can I get any form to startup centered in a MDI form?

Use mdiMain.ScaleHeight and mdiMain.ScaleWidth to know the internal size of the MDI form.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform