Cannot align columns in list box

  • Thread starter Thread starter Richard T. Edwards
  • Start date Start date
I am using the String.Format(....) 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 good but not the second line.

eg.

John $500 Full
Peter $10 Full
Mary $30 Full
 
* "Alan said:
I am using the String.Format(....) 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 good but not the second line.

eg.

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

Are you sure you are using a monospace font?
 
Back
Top