473,421 Members | 1,695 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,421 software developers and data experts.

form sizing

what's the best way to get a form to always open at a specific size. i've
sized and saved the forms, changed the borders and had popup on and off all
over but can't seem to get it to stay one way permanently. here's what i
basically have now:

1 form with 5 buttons to launch other forms. this launcher form will go .
visible=false and .visible=true when the other forms open and close. it is
not editable in any way, popup=no, modal=no, autoresize=no, autocenter=yes,
and border=thin.

all the other 5 forms have exactly the same settings.

i just want to keep them nice and neat looking but when they're maximized,
it's quite absurd looking to see 6 or 8 labels and controls in the upperleft
corner of the screen and nothing else anywhere. any thoughts?

--
Message posted via http://www.accessmonster.com
Dec 2 '05 #1
4 3061
"ka******@comcast.net wrote
what's the best way to get a form to always open at a specific size. i've sized and saved the forms, changed the borders and had popup on and off all over but can't seem to get it to stay one way permanently. here's what i
basically have now:

1 form with 5 buttons to launch other forms. this launcher form will go .. visible=false and .visible=true when the other forms open and close. it is not editable in any way, popup=no, modal=no, autoresize=no, autocenter=yes, and border=thin.

all the other 5 forms have exactly the same settings.

i just want to keep them nice and neat looking but when they're maximized, it's quite absurd looking to see 6 or 8 labels and controls in the upperleft corner of the screen and nothing else anywhere. any thoughts?


My suggestion is to follow the "Windows Way" and let the user have control
of their own desktop. There are various approaches to resizing the content
of a Form, but I have never actually met anyone who wanted the labels in a
small form that was maximized to be in 288-point type, centered, so that the
contents filled the larger view.

If the user, for reasons of his/her own, wants to maximize and have all the
controls in the upper left hand corner, then that is the user's choice, not
yours or mine. If they do not, then they don't have to click the maximize
button.

If you feel _compelled_ to irritate the users of your database application,
you can Maximize the Form in the Open Event, but I caution there are many
like me who'd have to see vast and great benefits to keep using an
application which maximized every form.

Larry Linson
Microsoft Access MVP
Dec 3 '05 #2
i don't want to MAKE it be maximized. i actually would much rather it be a
small little form about 4 inches across by 6 inches high. most of my forms
are about this size. if they want to maximize it, they can. i didn't take
those controls away. i just cant' get the forms to start off at the size
that i meant for them. and then occasionally one will go all long on me. it
will go from a 4x6 to 4x15 or something and the bottom of the form where
there are a couple of command buttons, will be off-screen even if the top
edge of the form is moved to the very top of the screen. i thought since
this was my first db, that i didn't have some property set right or something.
am i making more sense now?

Larry Linson wrote:
what's the best way to get a form to always open at a specific size.

i've
sized and saved the forms, changed the borders and had popup on and off

all
over but can't seem to get it to stay one way permanently. here's what i
basically have now:

1 form with 5 buttons to launch other forms. this launcher form will go

.
visible=false and .visible=true when the other forms open and close. it

is
not editable in any way, popup=no, modal=no, autoresize=no,

autocenter=yes,
and border=thin.

all the other 5 forms have exactly the same settings.

i just want to keep them nice and neat looking but when they're

maximized,
it's quite absurd looking to see 6 or 8 labels and controls in the

upperleft
corner of the screen and nothing else anywhere. any thoughts?


My suggestion is to follow the "Windows Way" and let the user have control
of their own desktop. There are various approaches to resizing the content
of a Form, but I have never actually met anyone who wanted the labels in a
small form that was maximized to be in 288-point type, centered, so that the
contents filled the larger view.

If the user, for reasons of his/her own, wants to maximize and have all the
controls in the upper left hand corner, then that is the user's choice, not
yours or mine. If they do not, then they don't have to click the maximize
button.

If you feel _compelled_ to irritate the users of your database application,
you can Maximize the Form in the Open Event, but I caution there are many
like me who'd have to see vast and great benefits to keep using an
application which maximized every form.

Larry Linson
Microsoft Access MVP


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200512/1
Dec 3 '05 #3
Do a MoveSize in the form load event

e.g.

Private Sub Form_Load()
Me.SetFocus
DoCmd.MoveSize 1000, 200, 6000, 4000
End Sub

or
Private Sub Form_Load()
With DoCmd
.SelectObject acForm, Me.Name, False
.MoveSize 1000, 200, 6000, 4000
End With
End Sub
--
Terry Kreft

"ka******@comcast.net via AccessMonster.com" <u15580@uwe> wrote in message
news:5840fb852cda9@uwe...
what's the best way to get a form to always open at a specific size. i've
sized and saved the forms, changed the borders and had popup on and off
all
over but can't seem to get it to stay one way permanently. here's what i
basically have now:

1 form with 5 buttons to launch other forms. this launcher form will go .
visible=false and .visible=true when the other forms open and close. it
is
not editable in any way, popup=no, modal=no, autoresize=no,
autocenter=yes,
and border=thin.

all the other 5 forms have exactly the same settings.

i just want to keep them nice and neat looking but when they're maximized,
it's quite absurd looking to see 6 or 8 labels and controls in the
upperleft
corner of the screen and nothing else anywhere. any thoughts?

--
Message posted via http://www.accessmonster.com

Dec 3 '05 #4
Br
ka******@comcast.net via AccessMonster.com wrote:
i don't want to MAKE it be maximized. i actually would much rather
it be a small little form about 4 inches across by 6 inches high.
most of my forms are about this size. if they want to maximize it,
they can. i didn't take those controls away. i just cant' get the
forms to start off at the size that i meant for them. and then
occasionally one will go all long on me. it will go from a 4x6 to
4x15 or something and the bottom of the form where there are a couple
of command buttons, will be off-screen even if the top edge of the
form is moved to the very top of the screen. i thought since this
was my first db, that i didn't have some property set right or
something. am i making more sense now?

Larry Linson wrote:
what's the best way to get a form to always open at a specific size.

i've
sized and saved the forms, changed the borders and had popup on and
off all over but can't seem to get it to stay one way permanently.
here's what i basically have now:

1 form with 5 buttons to launch other forms. this launcher form
will go

.
visible=false and .visible=true when the other forms open and
close. it is not editable in any way, popup=no, modal=no,
autoresize=no, autocenter=yes, and border=thin.

all the other 5 forms have exactly the same settings.

i just want to keep them nice and neat looking but when they're

maximized,
it's quite absurd looking to see 6 or 8 labels and controls in the
upperleft corner of the screen and nothing else anywhere. any
thoughts?


My suggestion is to follow the "Windows Way" and let the user have
control of their own desktop. There are various approaches to
resizing the content of a Form, but I have never actually met anyone
who wanted the labels in a small form that was maximized to be in
288-point type, centered, so that the contents filled the larger
view.

If the user, for reasons of his/her own, wants to maximize and have
all the controls in the upper left hand corner, then that is the
user's choice, not yours or mine. If they do not, then they don't
have to click the maximize button.

If you feel _compelled_ to irritate the users of your database
application, you can Maximize the Form in the Open Event, but I
caution there are many like me who'd have to see vast and great
benefits to keep using an application which maximized every form.

Larry Linson
Microsoft Access MVP


Open the form in design view and then switch to form view. Restore the
form if maximised. Resize to the size you want and press Ctrl-S to save
the size (I find this good for continuous forms where I want a certain
number of line items to appear).

Otherwise set the form to automatically resize.

I lso have some code (Someone else's code modified) to resize a form
proportionately depending on the user's screen resolution but I didn't
think that was what you were wanting.....
--
regards,

Bradley

A Christian Response
http://www.pastornet.net.au/response
Dec 5 '05 #5

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

Similar topics

5
by: Ron Vecchi | last post by:
I know the math I need to perform on width and height to keep an aspect ratio but where and how would I implement keeping a set aspect ratio on a form when a user resizes it. Override OnResize?...
1
by: Peteroid | last post by:
It looks like when I make a Form resizable and/or hit the maximize button that it shows garbage (unitialized memory) for the new portions of the form and then fills it in with background color. It...
14
by: Galen Somerville | last post by:
My current screen resolution is set to 1024 x 768. My form size always comes up as 1032 x 748. I have tried the help sample ' Retrieve the working rectangle from the Screen class ' using the...
1
by: James | last post by:
CWinFormsDialog in .net 2.0 lets you host a .Net UserControl as a dialog in a managed C++ MDI application. I.e. in the sample: ----------------------------------------------- #include...
4
by: ThunderMusic | last post by:
Hi, I have a custom form that works fine when I debug it or run it in release mode but cannot be loaded in the designer... Actually, it can be loaded in the designer when no control is on it, but...
6
by: =?Utf-8?B?bGpsZXZlbmQy?= | last post by:
I want to implement the following: If the user clicks on the border of a form, then I want to show a box around the form that represents the form's bounds. As the user moves the mouse only the...
0
bmallett
by: bmallett | last post by:
First off, i would like to thank everyone for any and all help with this. That being said, I am having a problem retrieving/posting my dynamic form data. I have a form that has multiple options...
4
by: R.A.F. | last post by:
Hi, Basically i've read that under C++ we can avoid flickering forms during sizing (maximize, minimize, restore,...) in SDi/MDI application. I understood that for that i need to override the...
9
by: Jeff | last post by:
I've always set form element sizes by using size on textfields and rows and cols on textareas. That's always lead to inconsistencies and a bit of guesswork when you want a form element to fill a...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.