Label Control Text Alignment....
I feel foolish asking for help on this, but I just can't seem to get the text
in my label control (System.Windows.Forms.Label) to simply align properly.
When I set the TextAlign property to MiddleRight, the text is indeed lined
up in the middle, but NOT on the right, depending on the size of the text
I put in the label.
IE: I have six labels that I have sized exactly the same, positioned top
to bottom on the form and right-aligned. The only difference in the physical
controls other than the names is the text that they hold. However, depending
on the length of the text in the control, the text appears to get dynamically
"re-aligned" inside the control. The longer the text is, the farther to the
left the text moves within the control. So here's how the text looks when
I run the form....I'll attempt to give the best perspective I can in this
Employee ID Number:
Again, all six controls are the same size and have the TextAlign property
set to MiddleRight. What the heck is the problem?
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL