Brad,
As the others have suggested, Text.Format is a function that returns a value
that is formatted, you are ignoring that value.
Rather then hard code the format to US dollars, I would use "C" a standard
format specifier for currency in region you are in.
I would recommend something like:
lblAmtDue.Text = (CInt(txtEntries.Text) * 1.5).ToString("C")
Which says take the integer value of txtEntries.Text, multiply that by 1.5,
convert the result of the multiplication to a string using the currency
format, then assign this formatted string to the Text property of lblAmtDue.
For details on Formatting in .NET see:
http://msdn.microsoft.com/library/de...ngoverview.asp
For standard numeric format strings (such as "C") see:
http://msdn.microsoft.com/library/de...matstrings.asp
I would also strongly recommend you include Option Strict On at the top of
your source files to avoid implicit conversions from Double to Text.
Hope this helps
Jay
"Brad" <ba******@ukcdogs.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I guess I still have not grasped the logic of formatting a simple label or
text box.
Why would the following not work? I need the resulting label to display
currency.
lblAmtDue.Text = CInt(txtEntries.Text) * 1.5
lblAmtDue.Text.Format("$#,##0.00")