Solved

Control Size of Forms in Forms

Posted on 2002-06-05
6
126 Views
Last Modified: 2012-05-04
How do I control the size of a form within my MDI Form?

Jeff
0
Comment
Question by:jeffbeasley
6 Comments
 
LVL 43

Expert Comment

by:TimCottee
ID: 7056644
You can only control the size of the child form when it is not maximized, then using the normal .Height and .Width properties you can set it to whatever you want. So you would set .WindowState = vbNormal then set the height and width accordingly.
0
 
LVL 28

Expert Comment

by:AzraSound
ID: 7056648
You can set the form's BorderStyle property to something like "Fixed Single".  Or do you mean you want to allow the user to resize, but only to a certain size?
0
 
LVL 3

Author Comment

by:jeffbeasley
ID: 7056697
Azra,
That worked for another 15 points how do I control where its beginning placement on the screen is.....

Thanks.....
Jeff
0
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 28

Accepted Solution

by:
AzraSound earned 65 total points
ID: 7056719
If it is a true child form in your MDI application, you can position the child form in its Load event:

Private Sub Form_Load()
    Me.Move 1000, 1000
End Sub
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7858109
jeffbeasley, an EE Moderator will handle this for you.
Moderator, my recommended disposition is:

    Accept AzraSound's comment(s) as an answer.

DanRollins -- EE database cleanup volunteer
0
 
LVL 1

Expert Comment

by:Computer101
ID: 8001717
Comment from expert accepted a answer

Computer101
E-E Admin
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

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…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…

861 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