Alignment of Text Boxes and Labels

Hi Brad,

Try adjusting the height of the control that is linked to the
label. When I resized a checkbox control to be the same size as the checkbox
and added a label, the label is lower (after you close and reopen the form)
but I could adjust the height of the control to line it up.



Regards,

Stephen Edginton

_____

From: Brad Feazell [mailto:Brad_feazell@...]
Sent: Monday, August 21, 2006 10:19 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Alignment of Text Boxes and Labels



I can't seem to fully control the alignment of text boxes and
associated labels. When I'm customizing, everything looks fine but when
I save the customization and load the form, the label drops down a few
pixels.

The only time I've noticed this is in tight quarters where I'm
attempting to fit several text boxes and labels into a small space.
Unfortunately, all my customization needs to be done in tight quarters.

Has anyone found a way around this? I've tried dis-associating the
label from the text box but even that didn't work.




--

Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.3/423 - Release Date: 18/08/2006



--

Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.3/423 - Release Date: 18/08/2006



[Non-text portions of this message have been removed]
I can't seem to fully control the alignment of text boxes and
associated labels. When I'm customizing, everything looks fine but when
I save the customization and load the form, the label drops down a few
pixels.

The only time I've noticed this is in tight quarters where I'm
attempting to fit several text boxes and labels into a small space.
Unfortunately, all my customization needs to be done in tight quarters.

Has anyone found a way around this? I've tried dis-associating the
label from the text box but even that didn't work.
We had a similar problem and found that if the screen res is set at 1024 x768 of greater, it works OK.

________________________________

From: vantage@yahoogroups.com on behalf of Brad Feazell
Sent: Mon 8/21/2006 5:18 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Alignment of Text Boxes and Labels



I can't seem to fully control the alignment of text boxes and
associated labels. When I'm customizing, everything looks fine but when
I save the customization and load the form, the label drops down a few
pixels.

The only time I've noticed this is in tight quarters where I'm
attempting to fit several text boxes and labels into a small space.
Unfortunately, all my customization needs to be done in tight quarters.

Has anyone found a way around this? I've tried dis-associating the
label from the text box but even that didn't work.






[Non-text portions of this message have been removed]
Hi Brad,

This isnÂ’t something I have noticed but if you really need to
set a controlÂ’s position you could try the location property to set it.



Imports System.Drawing



On form load event position your controls



txtEpiCustom1.location = new Point(450,450)

lblEpiCustom1.location = new Point(txtEpiCustom1.location.X - 100,
txtEpiCustom1.location.Y)



Use relative positions for a controlÂ’s label. You can also calculate the
size of the label based on its font and length etc then write a helper
method that positions it as close as you like.



This should give you more control.



Regards,



Stephen Edginton





_____

From: Brad Feazell [mailto:Brad_feazell@...]
Sent: Monday, August 21, 2006 10:19 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Alignment of Text Boxes and Labels



I can't seem to fully control the alignment of text boxes and
associated labels. When I'm customizing, everything looks fine but when
I save the customization and load the form, the label drops down a few
pixels.

The only time I've noticed this is in tight quarters where I'm
attempting to fit several text boxes and labels into a small space.
Unfortunately, all my customization needs to be done in tight quarters.

Has anyone found a way around this? I've tried dis-associating the
label from the text box but even that didn't work.




--

Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.3/423 - Release Date: 18/08/2006



--

Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.3/423 - Release Date: 18/08/2006



[Non-text portions of this message have been removed]