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
Can you inherit from a sealed class?
How many static constructors are allowed in a class?
What is view state c#?
List down the fundamental oop concepts?
How to do and Apply Themes to Datagrid,Lable,Textbox,etc., in C#.NET 2005 Windows Application? (like who we will do themes in ASP.NET using .CSS and .SKIN files). Urgent!!
What is int32 maxvalue?
What are the differences between a class and a struct?
What is difference between asp net and c# net?
What is difference between private and protected in c#?
What is data binding c#?
What is difference between dll and exe in c#?
3. Use layered architecture for coding. s.no name description 1 abc xxxxxxxxx 2 abc xxxxxxxxx 3 4 5 6 7 8 Select all Clear all Add Delete Name Description Save close
Why do we use namespace in c#?
How is a string immutable?
What is anonymous methods in c#?