By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,939 Members | 611 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,939 IT Pros & Developers. It's quick & easy.

Adjust Control Height/Width Precisely

P: n/a
Hi,

I'm trying to get the Left/Top/Height/Width properties for some text
boxes on a form to match exactly. Three of them are fine, but the
fourth will not accept the changes I type into the properties - it
automatically rounds them by an almost negligible amount (e.g. 0.446
become .0.448).

These objects are all on different pages of a tab control. As far as
I know that means I can't select them all and use 'Align Left', 'Size
to Widest' etc., which is what I'd do with normal controls on a form.

I've turned off 'Snap to Grid'; I've tried changing the properties
dramatically then changing them back; I've tried beating my head
repeatedly against a brick wall; I've tried adjusting the properties
of the page and the tab control first; but no joy!

Thanks for your help,
Linda Patterson
Nov 13 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
On 9 Aug 2004 01:49:06 -0700, li*************@hertshighways.org.uk
(Linda) wrote:
Hi,

I'm trying to get the Left/Top/Height/Width properties for some text
boxes on a form to match exactly. Three of them are fine, but the
fourth will not accept the changes I type into the properties - it
automatically rounds them by an almost negligible amount (e.g. 0.446
become .0.448).

These objects are all on different pages of a tab control. As far as
I know that means I can't select them all and use 'Align Left', 'Size
to Widest' etc., which is what I'd do with normal controls on a form.

I've turned off 'Snap to Grid'; I've tried changing the properties
dramatically then changing them back; I've tried beating my head
repeatedly against a brick wall; I've tried adjusting the properties
of the page and the tab control first; but no joy!

Thanks for your help,
Linda Patterson


I think it is not possible to avoid the rounding that Access makes
automatically. However, sometimes it helps to type in 0.445 to get
0.446.

HTH
Matthias Kläy
--
www.kcc.ch
Nov 13 '05 #2

P: n/a
Hi Linda

Try typing a value in twips, where 1440 twips = 1 inch. That is the actual
unit of measurement Access uses. For your example, you would type this into
the Properties box beside the Left property:
642 twips

You could also try assigning the property programmatically:
- Open your form in design view.
- Open the Immediate Window (Ctrl+G), and enter:
Forms!MyForm!MyTextBox.Left = 642

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Linda" <li*************@hertshighways.org.uk> wrote in message
news:a6*************************@posting.google.co m...
Hi,

I'm trying to get the Left/Top/Height/Width properties for some text
boxes on a form to match exactly. Three of them are fine, but the
fourth will not accept the changes I type into the properties - it
automatically rounds them by an almost negligible amount (e.g. 0.446
become .0.448).

These objects are all on different pages of a tab control. As far as
I know that means I can't select them all and use 'Align Left', 'Size
to Widest' etc., which is what I'd do with normal controls on a form.

I've turned off 'Snap to Grid'; I've tried changing the properties
dramatically then changing them back; I've tried beating my head
repeatedly against a brick wall; I've tried adjusting the properties
of the page and the tab control first; but no joy!

Thanks for your help,
Linda Patterson

Nov 13 '05 #3

P: n/a
li*************@hertshighways.org.uk (Linda) wrote:
I'm trying to get the Left/Top/Height/Width properties for some text
boxes on a form to match exactly. Three of them are fine, but the
fourth will not accept the changes I type into the properties - it
automatically rounds them by an almost negligible amount (e.g. 0.446
become .0.448).


In addition to the other responses, you can move objects on forms and
reports in design mode by holding down <Ctrl> and using the arrow keys.
<Shift> arrow keys re-sizes objects in design mode.

HTH - Keith.
www.keithwilby.org.uk
Nov 13 '05 #4

P: n/a
Keith/Allen/Matthias,

You guys are all gems - they sound like great ideas. I'll have a go
and let you know how I get on.

Many thanks,
Linda

Keith Wilby <ke*********@AwayWithYerCrap.com> wrote in message news:<Xn************************@10.15.188.42>...
li*************@hertshighways.org.uk (Linda) wrote:
I'm trying to get the Left/Top/Height/Width properties for some text
boxes on a form to match exactly. Three of them are fine, but the
fourth will not accept the changes I type into the properties - it
automatically rounds them by an almost negligible amount (e.g. 0.446
become .0.448).


In addition to the other responses, you can move objects on forms and
reports in design mode by holding down <Ctrl> and using the arrow keys.
<Shift> arrow keys re-sizes objects in design mode.

HTH - Keith.
www.keithwilby.org.uk

Nov 13 '05 #5

P: n/a
Matthias,

0.446 --> 0.448
0.445 --> 0.446

That is quite bizarre, although I've no doubt there's some "logic" to
it. A very simple solution, so thank you very much!

I'll save Allen's solutions (using VBA/using other units) for when
yours don't work, like if I desperately need something to be 0.447cm
wide! ;)

Thanks,
Linda

Matthias Klaey <mp**@hotmail.com> wrote in message news:<06********************************@4ax.com>. ..
On 9 Aug 2004 01:49:06 -0700, li*************@hertshighways.org.uk
(Linda) wrote:
Hi,

I'm trying to get the Left/Top/Height/Width properties for some text
boxes on a form to match exactly. Three of them are fine, but the
fourth will not accept the changes I type into the properties - it
automatically rounds them by an almost negligible amount (e.g. 0.446
become .0.448).

These objects are all on different pages of a tab control. As far as
I know that means I can't select them all and use 'Align Left', 'Size
to Widest' etc., which is what I'd do with normal controls on a form.

I've turned off 'Snap to Grid'; I've tried changing the properties
dramatically then changing them back; I've tried beating my head
repeatedly against a brick wall; I've tried adjusting the properties
of the page and the tab control first; but no joy!

Thanks for your help,
Linda Patterson


I think it is not possible to avoid the rounding that Access makes
automatically. However, sometimes it helps to type in 0.445 to get
0.446.

HTH
Matthias Kläy

Nov 13 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.