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

How do you declare a method in c#?

578


What are the advantages of generics in c#?

593


Explain the difference between access specifier and access modifier in c#?

578


What's difference between constants and static readonly?

617


What is boxing? Explain its functionality?

643






Can a sealed class be used as a base class?

604


Is c# pass by value?

565


Which is the best language for desktop application?

549


Difference between call by value and call by reference in C#?

599


What is meant by clr?

648


Can you call from an inherited constructor to a specific base constructor if both base class and an inheriting class has a number of overloaded constructors?

599


What is a console application in c#?

523


What are winforms in c#?

580


Can the nested class access, the containing class. Give an example?

542


What is the difference between “out” and “ref” parameters in c#?

592