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
How do you declare a method in c#?
What are the advantages of generics in c#?
Explain the difference between access specifier and access modifier in c#?
What's difference between constants and static readonly?
What is boxing? Explain its functionality?
Can a sealed class be used as a base class?
Is c# pass by value?
Which is the best language for desktop application?
Difference between call by value and call by reference in C#?
What is meant by clr?
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?
What is a console application in c#?
What are winforms in c#?
Can the nested class access, the containing class. Give an example?
What is the difference between “out” and “ref” parameters in c#?