Click here to Skip to main content
15,919,479 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
hi how I can show label text like this: 45,000,000
in other word I want label show price and seprate the 3 didits with "," of left side.

The label shows the string you give it. Use string.Format to format your string, or a ToString overload on your int.
Share this answer
Gonzoox 12-May-10 15:35pm    
I really don't understand why if you don't do their work they give you a vote of 1, I gave you a 5 because you're answering his question, not doing his work, you pointed him where to look for an answer... good job
Here is a sample in addition to what is mentioned in the first answer.
Share this answer
Format the string the way you want to display using String.Format or ToString or any custom format you want. Assign the formatted value to label and it will show as it is.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900