Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is a interface in c#?

1088


How many types of constructors are available in c#?

1144


What is a derived class in c#?

1248


What does this keyword mean in c#?

964


What does return do in for loop?

976


Why do we use readonly in c#?

960


What is Reflection in .NET? Namespace? How will you load an assembly which is not referenced by current assembly?

1026


What is msil, and why should developers need an appreciation of it if at all?

1097


Can a struct have a default constructor (a constructor without parameters) or a destructor in c#?

1021


Does c# support try-catch-finally blocks?

923


How the versioning applies to Assemblies or can you explain version numbers?

1080


Can you create an instance of a static class?

1051


Give an example of removing an element from the queue?

986


What do you know about WM_CHAR message?

1034


What are strings in c#?

996