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
What is a interface in c#?
How many types of constructors are available in c#?
What is a derived class in c#?
What does this keyword mean in c#?
What does return do in for loop?
Why do we use readonly in c#?
What is Reflection in .NET? Namespace? How will you load an assembly which is not referenced by current assembly?
What is msil, and why should developers need an appreciation of it if at all?
Can a struct have a default constructor (a constructor without parameters) or a destructor in c#?
Does c# support try-catch-finally blocks?
How the versioning applies to Assemblies or can you explain version numbers?
Can you create an instance of a static class?
Give an example of removing an element from the queue?
What do you know about WM_CHAR message?
What are strings in c#?