i want display a given number into Rupees Format

Like
Given number is : 156735

my Expected output is 1,56,735.

how to display?

Answer Posted / esarmca65

For win forms .....


private void button1_Click(object sender, EventArgs e)
{
string s = textBox1.Text;
textBox2.Text = string.Format("{0:c}",
Convert.ToInt32(s));
}

Input: 65536

Out Put:$65,536.00

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between events and delegates in c#?

461


What is the difference between writeline and write in c#?

422


What is the difference between array and arraylist c#?

455


What is hash c#?

491


What is type system in c#?

512






What is dynamic in c#?

464


Does c# support const methods, properties, or events?

539


What language is c# similar to?

481


What is difference between singleton and static class in c#?

472


What is difference between variable and property in c#?

427


What is uint c#?

452


What is yield keyword?

494


How does the lifecycle of Windows services differ from Standard EXE?

513


What is difference between array and collection?

459


Explain Constructor and destructor?

518