Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / September 2004

Tip: Looking for answers? Try searching our database.

Label Alignment

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Matt - 07 Sep 2004 03:10 GMT
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
Joey Callisay - 07 Sep 2004 05:56 GMT
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

> Hello all,
>
[quoted text clipped - 11 lines]
>
> Matt
Herfried K. Wagner [MVP] - 07 Sep 2004 13:07 GMT
* "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
[quoted text clipped - 5 lines]
> 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.

Signature

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

Matt - 08 Sep 2004 01:57 GMT
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

> * "Matt" <matt@majecsoftware.com> scripsit:
> >     I'm having trouble getting all my labels to properly align on a form.
[quoted text clipped - 9 lines]
> Set the labels' 'FlatStyle' property to 'System' to archieve a better
> result.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.