473,416 Members | 1,524 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

Resize height of subform object in main form

I have a system where many subforms are used. Often the size of the
subform had to be larger than could be displayed without scrolling.
I set the height of the subform to the typical height appropriate for
the typical screen resolution they were using.

Now some users have decided to use higher screen resolutions, up to
1280/1024. When they maximize the form, that of course works but the
size of the main form control containing the subform is still smaller
than would be possible with the new screen resolution.

I want to resize the height of the control containing the subform.

But I do NOT want to resize the controls in the form itself. I just
want to use more of the screen height and reduce or eliminate the amount
of the subform that is scrolled.

I have seen two utilities for doing auto form resizing. However, they
both resize all controls. I only want to resize one control.

I am learning about twips and twips per pixel at different screen
resolutions.

I know I can get the window height of the form from
me.form.windowheight

I can reset the control containing the sub form using
mysubformcontrolname.height =

I need some help on how to figure out how to resize it.

Anyone have done this before or can point me to a web page with the
calculation (I have looked at many but so far no joy)?

Bob
Nov 27 '07 #1
1 5562
Bob Alston wrote:
I have a system where many subforms are used. Often the size of the
subform had to be larger than could be displayed without scrolling.
I set the height of the subform to the typical height appropriate for
the typical screen resolution they were using.

Now some users have decided to use higher screen resolutions, up to
1280/1024. When they maximize the form, that of course works but the
size of the main form control containing the subform is still smaller
than would be possible with the new screen resolution.

I want to resize the height of the control containing the subform.

But I do NOT want to resize the controls in the form itself. I just
want to use more of the screen height and reduce or eliminate the amount
of the subform that is scrolled.

I have seen two utilities for doing auto form resizing. However, they
both resize all controls. I only want to resize one control.

I am learning about twips and twips per pixel at different screen
resolutions.

I know I can get the window height of the form from
me.form.windowheight

I can reset the control containing the sub form using
mysubformcontrolname.height =

I need some help on how to figure out how to resize it.

Anyone have done this before or can point me to a web page with the
calculation (I have looked at many but so far no joy)?

Bob
Would this link help?
http://www.mvps.org/access/general/gen0002.htm

Nov 27 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Lauren Quantrell | last post by:
In terms of resources, wondering if it makes a difference in adopting one of the three options below for resizing controls on a form and controls on a subform at the same time. option a.) Put...
2
by: Peter Proost | last post by:
Hi group I have the following piece of code that should resize the bitmap in a picture box but it doesn't work as I tought it would. Can someone help me with it? thnx Peter Public Class...
2
by: DraguVaso | last post by:
Hi, I have to DataGrid's on a form, one on the top of my form, the other at the bottom, but they though each other somewhere in the middle. What I want now is that, when I resize the form, they...
6
by: Rob | last post by:
I need to create a form that will resize only the verticle size of the Form and not the width. So far I'm partial to the following code. Can someone please elaborate the ??? . . . . Const...
6
by: DMUM via AccessMonster.com | last post by:
Hello I am trying to pass the name of my subform to a function/sub but I can't seem to get it to work. I am using an autokey function (ctrl E) to unlock text boxes on a subform. I have a few...
4
by: Russ Green | last post by:
I have a VB.NET app that uses lots of forms which I am loading into a panel cotrol using..... Me.pnlMain.Controls.Clear() frm.TopLevel = False frm.WindowState = FormWindowState.Maximized...
5
by: mycall | last post by:
Hi There, Im having a bit of a problem tryin to get my subform to automatically stretch to the size of the detail section when the main form changes size. I have set the autoresize on both the...
1
by: Starance | last post by:
Well... I'm not sure if this can be fixed, I've tried many ways. But here goes; When you resize your browser window it seems to move my video & photo divs. I want them kept in line with the...
2
by: dynamictiger | last post by:
I am building a wizard and have an issue with one sub form. Whilst all others are about 5 fields tall this one is 15 fields. My choices are either to resize the parent form ridiculously large for...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.