Formatting a label

  • Thread starter Thread starter Klaus Jensen
  • Start date Start date
K

Klaus Jensen

Hi!

If I have a label that displays a price, and I want to apply formatting to
it ({0:C} for instance - displays the value as currency), how do I do that?
It seems like it is not possible.

What would then be the easiest and most correct way to make sure the
contents of the label is displayed in a certain way?

I know I could do some manual formatting , but I feel I must be missing
something obvious here.. :)

Thanks in advance

- Klaus
 
And why exactly does the following not work: MyLabel.Text =
String.Format("{0:C}", CurrencyValue);?

Jerry
 
Back
Top