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 5 5922
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 automaticall y 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
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 programmaticall y:
- Open your form in design view.
- Open the Immediate Window (Ctrl+G), and enter:
Forms!MyForm!My TextBox.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.goog le.com... 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 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
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*********@Aw ayWithYerCrap.c om> 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
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.c om> 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 automaticall y 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: lauren quantrell |
last post by:
A while back I got a requirement for the client to be able to adjust
the relative heights of two subforms by click-dragging the mouse and I
came up with a kludge solution using a border control between the two
subforms. But I put my mind to this again recently and came up with a
solution (code below) that works well with multiple subforms to...
|
by: Chris Millar |
last post by:
I have a user control that i wish to extend to change the date when the user
selects the numeric up down button.
The code explains itself, hope someone can help.
any ideas appreaciated..
Chris.
code :
|
by: Tebogo Tefo via .NET 247 |
last post by:
Hi
I have a user control that contains three dropdownlists that I populate according to
what was selected in the other dropdownlist (i.e. populate dropdownlist2 after selecting a
value in dropdownlist1)
The App works fine if I don't add the user control that I created
and all events on the page work and thus the App is perfect.
But as...
|
by: Nathan Sokalski |
last post by:
I am using ASP.NET 2.0's ImageMap Control to create 2 imagemaps, one
directly below the other. When I do this a thin blank space appears between
them. After several days of frustration I realized that the difference
between what the ImageMap Control outputs and the html on the page I was
trying to reproduce with ASP.NET 2.0 was the following:...
|
by: =?Utf-8?B?am9uZWZlcg==?= |
last post by:
I keep getting the message after I converted a regular aspx page to now be
based on a master page:
"Only Content controls are allowed directly in a content page that contains
Content controls."
What control, or line of Code is causing the error?
here is the offending code :
| |
by: papalarge |
last post by:
Hey all...
I've been using the following to calculate the height the textbox
needs to be in order to grow it vertically to its necessary size.
textbox1.Height = Me.CreateGraphics().MeasureString(textbox1.Text,
textbox1.Font, textbox1.Width).Height
However it's not appearing to work that well, especially when I'm
using a RichTextbox...
|
by: Terry |
last post by:
I am trying to figure out if there is a way to get a regular asp.net
TextBox to fill the screen, both height and width. When I drop a
TextBox onto a blank asp.net page and set the height="100%",
width="100", and the TextMode="MultiLine", the TextBox will fill the
width of the page, and will adjust the width dynamically as the page
changes...
|
by: Linda Liu[MSFT] |
last post by:
Hi Moondaddy,
I downloaded your sample project and run it on my machine. I did see the
problem on my side. The image drawn in the Button is not as clear as that
one drawn in the Image control.
After doing some research, I found that this is a WPF layout problem.
When we place a control into a parent control, if the child control's Width...
|
by: moondaddy |
last post by:
Below is some xaml that is a mockup of a control I'm building. It's a shape
that will be used in a diagramming tool. The red, blue and green rectangles
simulate connectors on the side of the shape and will have connection lines
attached to them. These connectors will be dynamically added and removed at
runtime, and at all times, the group...
|
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...
|
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...
| |
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. ...
|
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...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
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...
| |
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
| |