473,395 Members | 1,464 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,395 software developers and data experts.

Aligning text with Spaces - List box

I would appreciate if some one could help me on this.

I have a list box where I would like to display Company Name and Number by
conctaening them.
For example -
Abc 1
Bii 1

While doing this I have to make sure that the values for Company Number are
alligned. The problem with the example above is, I have same no of characters
for the company name and number, in addition to it I have same no of space
characters. But still both the values are not aligned.

As this list is dynamic I can not hardocde the no of space characters to
fill the gap.
Is there any way to do it? Or I can not do it using ListBox control. I can
not go with other third party controls.

I would appreciate any help or reference to articles.

Thanks,
dinoo

Aug 31 '06 #1
1 1080
Padding lsitboxes with strings normally doesn't work.

See if this thread helps
http://66.129.67.100/247reference/msgs/17/86123.aspx

--
Regards

John Timney (MVP)
"dinoo" <di***@discussions.microsoft.comwrote in message
news:ED**********************************@microsof t.com...
>I would appreciate if some one could help me on this.

I have a list box where I would like to display Company Name and Number by
conctaening them.
For example -
Abc 1
Bii 1

While doing this I have to make sure that the values for Company Number
are
alligned. The problem with the example above is, I have same no of
characters
for the company name and number, in addition to it I have same no of space
characters. But still both the values are not aligned.

As this list is dynamic I can not hardocde the no of space characters to
fill the gap.
Is there any way to do it? Or I can not do it using ListBox control. I can
not go with other third party controls.

I would appreciate any help or reference to articles.

Thanks,
dinoo

Aug 31 '06 #2

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

Similar topics

4
by: Rookie | last post by:
I need to display several columns of numbers in a textbox. I wish to display the columns with the decimal point position aligned vertically. I have found that the # digit placeholders do not...
6
by: Steven Bethard | last post by:
I have a string with a bunch of whitespace in it, and a series of chunks of that string whose indices I need to find. However, the chunks have been whitespace-normalized, so that multiple spaces...
9
by: Steven Bethard | last post by:
I've got a list of word substrings (the "tokens") which I need to align to a string of text (the "sentence"). The sentence is basically the concatenation of the token list, with spaces sometimes...
4
by: Steven Bethard | last post by:
I have some plain text data and some SGML markup for that text that I need to align. (The SGML doesn't maintain the original whitespace, so I have to do some alignment; I can't just calculate the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.