The
Format
static method of
String
class can be used for this purpose as shown below:
Dim fmtStr As String = String.Format("{0,-5} Quantity: {1,7} ${2,8}",
txtItems.Text,txtQty.Text, Amount)
I think
{2,8:C}
can be used instead of
${2,8}
in the above format string, to prefix the
Currency
symbol of Current culture