473,382 Members | 1,302 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,382 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 2225
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.