Cannot align columns in list box

  • Thread starter Thread starter Alan
  • Start date Start date
A

Alan

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
 
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
 
Back
Top