Solved

mdi child form's size problem

Posted on 1998-05-13
3
230 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

786 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