Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Centre MDI Child Forms

Status
Not open for further replies.

Ptrace

Programmer
Jan 31, 2002
12
0
0
GB
Hi,
I am having a problem trying to center the child forms of my applications main MDI form. It will not allow me to change the StartUpPosition of the child forms without giving me the following error:

Invalid Property Error

It is stuck on '0 - Manual'.
Why is it doing this and how can I get around it??

PTrace [sadeyes]
 
Change the propery in Child Form
Make the MDI Child property - false
Border Style = none or fixed dialog
Setup Position = Center

Now call the Childform from menu

when you close the Main form
you should write the Unload all child form
Ex. End or Unload

G Arul Dass
dass@powerbiss.com



 
Form1.StartUpPosition = vbStartUpManual
Form1.Move (myMDI.ScaleWidth-Form1.Width)/2,(myMDI.ScaleHeight-Form1.Height)/2
 
Thank u both,
It's working great now.

PTrace [afro2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top