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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top