Solved

Control Size of Forms in Forms

Posted on 2002-06-05
6
123 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
Comment Utility
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
Comment Utility
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
Comment Utility
Azra,
That worked for another 15 points how do I control where its beginning placement on the screen is.....

Thanks.....
Jeff
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 28

Accepted Solution

by:
AzraSound earned 65 total points
Comment Utility
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
Comment Utility
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
Comment Utility
Comment from expert accepted a answer

Computer101
E-E Admin
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now