Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_windows_forms thread: Centering a label


Message #1 by "Jim D" <jdonahue@f...> on Tue, 30 Jul 2002 23:48:03
I'm just starting my first NET windows project.  I have a label, the text 
of which changes depending upon which menu selection is pressed.  How do 
I align the label in the center of my form?  I'd like it to resize for 
the length of the string but be centered.
As it is now, I had to make the label as wide as my longest text and then 
just center everything else in it.
I'd like to resize the label but have it centered.  It always seems to 
justify itself from the left.
Thanks!!!!!!

  Return to Index