>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