By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,080 Members | 1,817 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,080 IT Pros & Developers. It's quick & easy.

Aligning text with Spaces - List box

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.