D
Danno
Guest
I have a string and variable that I am trying to get added into a ListBox and trying to format it to no avail. Here is a sample..
and although it puts the concantenated string into the listbox, no matter what I do the string will not format (stays on the left border).
Any Suggestions?
Code:
totalCost = ((Convert.ToInt32(txtYears.Text) * 12) - 1) * payment
lstDisplay.Items.Add(String.Format("{0,7}", "Total amount paid over " & txtYears.Text & " years: " & FormatCurrency(totalCost)))
and although it puts the concantenated string into the listbox, no matter what I do the string will not format (stays on the left border).
Any Suggestions?