Solved

mdi child form's size problem

Posted on 1998-05-13
3
238 Views
Last Modified: 2012-08-14
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
0
Comment
Question by:ny971181
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
clifABB earned 10 total points
ID: 1447468
Two properties:
  .Height
  .Width

Set them as needed in the Form_Load event
0
 
LVL 1

Author Comment

by:ny971181
ID: 1447469
I really love to know why the form size is changed. any property to make it stay the same size?

thank you

ny971181

0
 
LVL 6

Expert Comment

by:clifABB
ID: 1447470
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question