473,836 Members | 2,136 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3104
"ka******@comca st.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.c om
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******@comca st.net via AccessMonster.c om" <u15580@uwe> wrote in message
news:5840fb852c da9@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******@comcas t.net via AccessMonster.c om 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
10151
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? couldn't quite figure it out. -- Ron Vecchi
1
1188
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 only shows it very briefly, but it's VERY visible during this time. This happens with re-sizable forms too. And it 'feels' like re-sizing is 'jerky'; that is, lags a bit from my actions. I turn off visiblity to the controls on the form while...
14
3440
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 PrimaryScreen and the WorkingArea properties. Dim workingRectangle As System.Drawing.Rectangle = _ Screen.PrimaryScreen.WorkingArea ' Set the size of the form slightly less than size of
1
4861
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 <afxwinforms.h> #using <WinFormUserControl1.dll> using namespace WinFormUserControl1;
4
5835
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 the resizing tool (in the designer) is offset both horizontally and vertically and when I put a control on it, as soon as I save, the designer throws an exception (but cannot be reproduced everytime) and the form cannot be loaded anymore unless...
6
1955
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 box's bounds would change. When the user releases the mouse the form's bounds would be set to the bounds of the box. Note that this is very similar to how the Splitter control works. Does anybody know how to do this?
0
3400
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 within options. I have everything being dynamically named from the previously dynamically named element. (I hope this makes sense.) I am not able to retrieve any of the dynamically created values. I can view them on the source page but can't pull them...
4
4766
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 WndProc with WM_PAINT and WM_SIZE messages. however, under MFC there is a useful method called SetRedraw(bool); it allows or not, to redraw the relative control.
9
2059
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 fixed width and you want textfields to be as wide as textareas. Now, we can use a bit of CSS to set the width and for textareas also the height.
0
9812
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
9657
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10823
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10532
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10577
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5642
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5812
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4443
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4003
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.