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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MDI Child Form position

Status
Not open for further replies.

alanf

Programmer
Feb 7, 2001
39
US
I have an MDI Child form inside a parent. I can't get the child form to position flush left on the parent form. There is a margin about 400 twips wide on the left. I have tried everything, including setting the child form's left property to negative numbers. Anyone know how I can get this child form over to the left?
 
Hello

Bit of an odd one!!

When loading the form try the following;
Code:
Load Form1
Form1.Left = 0
Form1.Top = 0
Form1.Show

The only thing that springs to mind is that in an MDI environment the parent 'knows' if the form was previously loaded and indents it every subsequent load.

Hope this helps
 
Hi. That did, in fact, work. Go figure! Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top