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

putting a form in the middle

Hi Folk

I am wondering if it is possible to put a form in the middle of the screen.
That is, my form is about 20cms wide by 11 cms high, but my screen is much
wider and higher, so I was wondering if it possible to put it in the middle
of my screen.

Any ideas?
Nov 13 '05 #1
7 1890
Open your form in design view then open the property sheet
for the form. You should find a property called Auto
Center. Set it to Yes.

--
Nick Coe (UK)
Available - Will work for money :-)
http://www.alphacos.co.uk/ AccHelp + pAnimal
http://www.pjandcoe.co.uk/ Online Store

In news:kC****************@news.xtra.co.nz,
xtra typed:
Hi Folk

I am wondering if it is possible to put a form in the
middle
of the screen. That is, my form is about 20cms wide by 11
cms
high, but my screen is much wider and higher, so I was
wondering if it possible to put it in the middle of my
screen.

Any ideas?

Nov 13 '05 #2
"Nick Coe (UK)" <cl*****************@MASPON.yahooDOTcom> wrote in message
news:42***********************@ptn-nntp-reader04.plus.net...
Open your form in design view then open the property sheet for the form.
You should find a property called Auto Center. Set it to Yes.

Just to clarify Nick's reply, that will centre the form about the Access
window, not necessarily the screen. To centre about the screen requires the
Access window to be maximised.

Regards,
Keith.
www.keithwilby.com
Nov 13 '05 #3

"Keith" <ke*********@baeAWAYWITHITsystems.com> wrote in message
news:42********@glkas0286.greenlnk.net...
"Nick Coe (UK)" <cl*****************@MASPON.yahooDOTcom> wrote in message
news:42***********************@ptn-nntp-reader04.plus.net...
Open your form in design view then open the property sheet for the form.
You should find a property called Auto Center. Set it to Yes.
Just to clarify Nick's reply, that will centre the form about the Access
window, not necessarily the screen. To centre about the screen requires

the Access window to be maximised.

Regards,
Keith.
www.keithwilby.com


Hi dudes,

I know about this, and it should work, but it certainly does not fill the
screen. The controls stay the exact size of what you set them. The only
time the controls resize is when you print and only vertically, not
horizontally. I want the form look like this:

|-----------------|
| |
| [ ] |
| |
|-----------------|

where [ ] are the controls and the area around it expands if the screen gets
bigger and/or smaller....

Cheers

Nicolaas
Nov 13 '05 #4
"xtra" <wi**********@hottermail.com> wrote in message
news:wj****************@news.xtra.co.nz...

I want the form look like this:

|-----------------|
| |
| [ ] |
| |
|-----------------|

where [ ] are the controls and the area around it expands if the screen
gets
bigger and/or smaller....

That's not what you asked originally, Filling the screen <> putting it in
the middle ;-p
You could probably achieve this using VBA but I'm suspecting it won't be a
trivial task. I don't have anything in my library that will do it.

Regards,
Keith.
Nov 13 '05 #5
Keith,

Thanks for clarifying.

I do believe there's some code in one of the Designer's
Handbooks. It rings a bell anyway, I've certainly seen it
done and it was very, very flickery with all the redraws.
I'll research and get back to Mr/Ms xtra.

--
Nick Coe (UK)
http://www.alphacos.co.uk/

In news:42********@glkas0286.greenlnk.net,
Keith typed:
"xtra" <wi**********@hottermail.com> wrote in message
news:wj****************@news.xtra.co.nz...

I want the form look like this:
-----------------|
|
[ ] |
|
-----------------|


where [ ] are the controls and the area around it expands
if
the screen gets
bigger and/or smaller....

That's not what you asked originally, Filling the screen
<>
putting it in the middle ;-p
You could probably achieve this using VBA but I'm
suspecting
it won't be a trivial task. I don't have anything in my
library that will do it.
Regards,
Keith.

Nov 13 '05 #6
As Keith said, you didn't ask about resizing controls. Let
me go and do a bit of research, I'm sure I've seen something
somewhere.

--
Nick Coe (UK)
http://www.alphacos.co.uk/

In news:wj****************@news.xtra.co.nz,
xtra typed:
"Keith" <ke*********@baeAWAYWITHITsystems.com> wrote in
message
news:42********@glkas0286.greenlnk.net...
"Nick Coe (UK)" <cl*****************@MASPON.yahooDOTcom>
wrote in message
news:42***********************@ptn-nntp-reader04.plus.net...
Open your form in design view then open the property
sheet
for the form. You should find a property called Auto
Center.
Set it to Yes.

Just to clarify Nick's reply, that will centre the form
about
the Access window, not necessarily the screen. To centre
about the screen requires the Access window to be
maximised.

Regards,
Keith.
www.keithwilby.com


Hi dudes,

I know about this, and it should work, but it certainly
does
not fill the screen. The controls stay the exact size of
what
you set them. The only time the controls resize is when
you
print and only vertically, not horizontally. I want the
form
look like this:
-----------------|
|
[ ] |
|
-----------------|


where [ ] are the controls and the area around it expands
if
the screen gets bigger and/or smaller....

Cheers

Nicolaas

Nov 13 '05 #7
Right.

There's a whole load of stuff on resizing forms, controls,
auto-sizing and scaling in the Access Developers Handbook by
Getz, Litwin and Gilbert. They also include a stack of code
you can bolt in to your app.

www.developershandbook.com

--
Nick Coe (UK)
http://www.alphacos.co.uk/

In news:wj****************@news.xtra.co.nz,
xtra typed:
"Keith" <ke*********@baeAWAYWITHITsystems.com> wrote in
message
news:42********@glkas0286.greenlnk.net...
"Nick Coe (UK)" <cl*****************@MASPON.yahooDOTcom>
wrote in message
news:42***********************@ptn-nntp-reader04.plus.net...
Open your form in design view then open the property
sheet
for the form. You should find a property called Auto
Center.
Set it to Yes.

Just to clarify Nick's reply, that will centre the form
about
the Access window, not necessarily the screen. To centre
about the screen requires the Access window to be
maximised.

Regards,
Keith.
www.keithwilby.com


Hi dudes,

I know about this, and it should work, but it certainly
does
not fill the screen. The controls stay the exact size of
what
you set them. The only time the controls resize is when
you
print and only vertically, not horizontally. I want the
form
look like this:
-----------------|
|
[ ] |
|
-----------------|


where [ ] are the controls and the area around it expands
if
the screen gets bigger and/or smaller....

Cheers

Nicolaas

Nov 13 '05 #8

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

Similar topics

2
by: iwasinnihon | last post by:
I don't usually like to do this, but I need help. I have gone over this code and cannot figure out why it doesn't work. First of all it doesn't check to see if you have filled in the required...
4
by: Kathryn | last post by:
I hope you can help as this is driving me crazy! I have an asp which has 3 frames on it as follows: <FRAMESET rows="50%,*,10%"> <FRAME src="rundetailstop.asp" name="rundetailstop"...
2
by: Mark Creelman | last post by:
Hi: I am relatively new to ASP. I prefer Perl, but need to do this form to e-mail sipt for a web page, See Example of script below that works fine. I want to add the feature to this where it...
6
by: tm | last post by:
I am trying to reference a table entry (qtyonhand) populated from a recordset. There is only one record displayed on this table. When i try to compare this displayed field to an input field...
0
by: feng | last post by:
Hi, I am having a strange problem right now and I don't even know how to go about it. Someone please help me! Any inputs will be highly appreciated. We have an application that has a VB.Net...
0
by: Keith | last post by:
I have a web form that contains a repeater control that is designed to ask like a check book register. Clicking on a certain transaction takes the user to a different .aspx page where it can be...
0
by: Keith | last post by:
I have a web form that contains a repeater control that is designed to ask like a check book register. Clicking on a certain transaction takes the user to a different .aspx page where it can be...
1
by: nagamalli26 | last post by:
hai iam new php. i am creating admin side. i wrote this, phpcode: <?php //include_once("config.php"); $con=mysql_connect("localhost","root",""); mysql_select_db("happysalary"); ?>
1
omerbutt
by: omerbutt | last post by:
HI I am WORKING ON A PROJECT IN WHICH I HAVE TO CREATE SOME INPUT FIELDS by selecting the number of inputs from a select menu the problem is that when i post the form the fields inside the div are...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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...
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
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,...

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.