mdi child form's size problem

hi,
I have a mdi and mdi child form.
if I run the mdi child form independently, the form size remains as it is at design time. If I run it through the mdi form. the mdi child form gets bigger when I open it.
Is there any property I can use to manage the form size ?

best regards

ny971181
LVL 1
ny971181Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
clifABBConnect With a Mentor Commented:
Two properties:
  .Height
  .Width

Set them as needed in the Form_Load event
0
 
ny971181Author Commented:
I really love to know why the form size is changed. any property to make it stay the same size?

thank you

ny971181

0
 
clifABBCommented:
The reason is because that's the way Windows works (I know it's a cop out, but it's true).
On non-mdichild forms, if it's property StartupPosition is 4 - Windows Default, when you open a sizable window, Windows calculates it's size as a percentage of it's parent.
On mdichild forms, the property StartupPosition is ignored and Windows internally sets it to Windows Default.

Your only other option is to set the BorderStyle to something other than sizable.
0
All Courses

From novice to tech pro — start learning today.