X.ToString()???

  • Thread starter Thread starter Darryn Ross
  • Start date Start date
D

Darryn Ross

Hi,

I am wondering how i can "1,000.00" displayed in a windows label instead of
"1000.00"

double i = 1000.00
string str = i.ToString("F2")

i understand that the code above will display "1000.00" in the windows label
but i need to show "1,000.00" is there a way of formatting this to be
displayed correctly?

Regards

Darryn
 
Darryn said:
Hi,

I am wondering how i can "1,000.00" displayed in a windows label instead of
"1000.00"

double i = 1000.00
string str = i.ToString("F2")

i understand that the code above will display "1000.00" in the windows label
but i need to show "1,000.00" is there a way of formatting this to be
displayed correctly?

Regards

Darryn

X.ToString("###,###.00")
 
Back
Top