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

Can you inherit from a sealed class?

668


How many static constructors are allowed in a class?

656


What is view state c#?

694


List down the fundamental oop concepts?

674


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!!

1866


What is int32 maxvalue?

723


What are the differences between a class and a struct?

702


What is difference between asp net and c# net?

675


What is difference between private and protected in c#?

662


What is data binding c#?

708


What is difference between dll and exe in c#?

666


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

1617


Why do we use namespace in c#?

702


How is a string immutable?

687


What is anonymous methods in c#?

729