473,398 Members | 2,125 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

right justified lable - how to line up?

I have Label controls with TextAlign property set to MiddleRight.

For some reason, the text doesn't always shift all the way to the right.

Example: If I put "10" it seems to be shifted all the way to the right.
If I put "1,000,000" it shifts little bit to the left leaving little
space to the right. This doesn't look right if I have multiple labels
lined up vertically.

Does anyone else experience this? Is there a way to line them up?

Thanks,
Glenn
Nov 16 '05 #1
2 2231
If you are talking about the left hand column, you have to pad to align.

"Glenn Lerner" <gl**@hotmail.com> wrote in message
news:63*****************@twister.nyc.rr.com...
I have Label controls with TextAlign property set to MiddleRight.

For some reason, the text doesn't always shift all the way to the right.

Example: If I put "10" it seems to be shifted all the way to the right.
If I put "1,000,000" it shifts little bit to the left leaving little
space to the right. This doesn't look right if I have multiple labels
lined up vertically.

Does anyone else experience this? Is there a way to line them up?

Thanks,
Glenn

Nov 16 '05 #2
Glenn Lerner <gl**@hotmail.com> wrote in news:63odc.20632$WA4.780
@twister.nyc.rr.com:
For some reason, the text doesn't always shift all the way to the right.

Example: If I put "10" it seems to be shifted all the way to the right.
If I put "1,000,000" it shifts little bit to the left leaving little
space to the right. This doesn't look right if I have multiple labels
lined up vertically.

Does anyone else experience this? Is there a way to line them up?


You aren't dreaming - I've noticed this as well. I would say its a bug,
and I haven't found any way to get around it short of writing a
"FixedLabel" control (which I haven't done yet, but I'm considering - it
would be quite easy.) It seems that the longer the string you try to
right-justify, the further away from right-justified it gets.

-mdb
Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Stan Shankman | last post by:
How do I add trailing spaces within a right-justified textBox? In order to add a trailing space to the text in a right-justified textBox, I use to just append a space to the end of the text...
2
by: Glenn Lerner | last post by:
I have Label controls with TextAlign property set to MiddleRight. For some reason, the text doesn't always shift all the way to the right. Example: If I put "10" it seems to be shifted all the...
7
by: shawnk | last post by:
Hello Everyone How do you format format numbers right-justified using Console.WriteLine(), i.e I need to line up numbers in vertical columns and the MSDN documentation is pretty poor Here is the...
6
by: Hymer | last post by:
Hello, I have a paragraph where I want to add one word at the end. I want this word to be aligned right but I want it to appear on the same line as the last line of the paragraph. So I don't...
4
by: Austin Powers | last post by:
I want to (on one line) show something like the following ------------------------------------------------------- left centered right...
5
by: iKiLL | last post by:
Hi All, I am trying to Bulid Windows Mobile Forms Control with C# in VS2005 using CF2. On this control A lable is created and some text set for the control. My problem is that i dont know how...
8
by: trbosjek | last post by:
A total newbie. This simple example below prints left justified. How do I make it right justified, as a number should be? It works for smaller integers (other than unsigned long long). #include...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.