Labels Alignment with Text Boxes

grovelli
4StarLounger
Posts: 528
Joined: 26 Jan 2010, 15:14

Labels Alignment with Text Boxes

Post by grovelli »

On the startup form of the attached mdb, Label103 and Label155 align vertically with the Vaprio and Palazzolo text boxes no matter which monitor I use to look at the form in form view. It isn't so for all the other labels in the same Form Header section: I have to move them depending on which monitor I use. Why the different behaviour?
You do not have the required permissions to view the files attached to this post.

User avatar
HansV
Administrator
Posts: 78488
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Labels Alignment with Text Boxes

Post by HansV »

The Horizontal Anchor property of the problem labels has been set to Both, causing them to be moved when the form is resized. Set this property to Left to avoid this.
S124.png
S125.png
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans

grovelli
4StarLounger
Posts: 528
Joined: 26 Jan 2010, 15:14

Re: Labels Alignment with Text Boxes

Post by grovelli »

Thank you Hans, does the fact the Vertical Anchor in the problem labels has been set to Bottom as opposed to Top make no difference?

User avatar
HansV
Administrator
Posts: 78488
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Labels Alignment with Text Boxes

Post by HansV »

It makes no difference since the height of the form header section remains the same when the form is resized. If you resized the form header dynamically, it would make a difference.
Best wishes,
Hans