Hello all,

I'm having trouble getting all my labels to properly align on a form.
In VB6, I used to be able to align all the labels and they would display
aligned to the right/left as I expected them to.

However, in VS 2003 the labels don't seem to want to align properly. I
have the Text Align properties set the same and have made the labels all the
same size. The labels do their jobs (indicating what's what) but they look
sloppy. Am I missing something that will allow me to align these labels
correctly or is this another trade-off of WinForms?

Thanks in advance for any help you may provide.

Matt

Re: Label Alignment by Joey

Joey
Mon Sep 06 23:56:48 CDT 2004

TextAlignment is the alignment of the text displayed on the label controls.
You should select all the controls to be aligned (last to be clicked is the
one to be followed) use Format Menu, Align, then whatever position alignment
you want.
You can also have equal spacing among the said controls, etc. under the
Format menu

"Matt" <matt@majecsoftware.com> wrote in message
news:3M8%c.19234$ni.1659@okepread01...
> Hello all,
>
> I'm having trouble getting all my labels to properly align on a form.
> In VB6, I used to be able to align all the labels and they would display
> aligned to the right/left as I expected them to.
>
> However, in VS 2003 the labels don't seem to want to align properly.
I
> have the Text Align properties set the same and have made the labels all
the
> same size. The labels do their jobs (indicating what's what) but they
look
> sloppy. Am I missing something that will allow me to align these labels
> correctly or is this another trade-off of WinForms?
>
> Thanks in advance for any help you may provide.
>
> Matt
>
>



Re: Label Alignment by hirf-spam-me-here

hirf-spam-me-here
Tue Sep 07 07:07:30 CDT 2004

* "Matt" <matt@majecsoftware.com> scripsit:
> I'm having trouble getting all my labels to properly align on a form.
> In VB6, I used to be able to align all the labels and they would display
> aligned to the right/left as I expected them to.
>
> However, in VS 2003 the labels don't seem to want to align properly. I
> have the Text Align properties set the same and have made the labels all the
> same size. The labels do their jobs (indicating what's what) but they look
> sloppy. Am I missing something that will allow me to align these labels
> correctly or is this another trade-off of WinForms?

Set the labels' 'FlatStyle' property to 'System' to archieve a better
result.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Re: Label Alignment by Matt

Matt
Tue Sep 07 19:57:41 CDT 2004

Thankyou both for your responses. As with most things I find the answer
about five minutes after I post the question to the group.

Thanks again.

Matt


"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:2q5mtsFr2kboU1@uni-berlin.de...
> * "Matt" <matt@majecsoftware.com> scripsit:
> > I'm having trouble getting all my labels to properly align on a
form.
> > In VB6, I used to be able to align all the labels and they would display
> > aligned to the right/left as I expected them to.
> >
> > However, in VS 2003 the labels don't seem to want to align properly.
I
> > have the Text Align properties set the same and have made the labels all
the
> > same size. The labels do their jobs (indicating what's what) but they
look
> > sloppy. Am I missing something that will allow me to align these labels
> > correctly or is this another trade-off of WinForms?
>
> Set the labels' 'FlatStyle' property to 'System' to archieve a better
> result.
>
> --
> M S Herfried K. Wagner
> M V P <URL:http://dotnet.mvps.org/>
> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>