PC Review


Reply
Thread Tools Rate Thread

Cannot align columns in list box

 
 
Alan
Guest
Posts: n/a
 
      9th Oct 2003
I am using the String.Format(fmtStr, .....) to print 3 strings into a
listbox,
dim fmtStr as string = "{0,-20}{1,10}{2,10}"

However, the strings do not align all well in the list box.
The first and last string align go but not the second line.

eg.

John $500 Full
Peter $10 Full
Mary $30 Full


 
Reply With Quote
 
 
 
 
Jan
Guest
Posts: n/a
 
      9th Oct 2003
On Thu, 9 Oct 2003 13:47:31 +1000, Alan wrote:

> I am using the String.Format(fmtStr, .....) to print 3 strings into a
> listbox,
> dim fmtStr as string = "{0,-20}{1,10}{2,10}"
>
> However, the strings do not align all well in the list box.
> The first and last string align go but not the second line.
>
> eg.
>
> John $500 Full
> Peter $10 Full
> Mary $30 Full


Try to use an other Font for the TextBox. 'Courier New' for example

JAn
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Align table columns with gridview columns Jacksm Microsoft ASP .NET 2 21st Nov 2006 09:49 PM
Format and Align Columns =?Utf-8?B?VEtN?= Microsoft Excel New Users 3 19th Oct 2006 06:06 PM
How to align entries in columns so other columns will follow ? =?Utf-8?B?QXJ0dXI=?= Microsoft Excel Programming 0 7th Nov 2005 08:10 AM
Align data in List Box columns jrh Microsoft Access Forms 2 25th Feb 2004 07:32 PM
Cannot align columns in list box Richard T. Edwards Microsoft VB .NET 2 9th Oct 2003 07:48 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:46 AM.