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

How do I use the 'using' keyword with multiple objects?

955


What is difference between constants and read-only?

942


What is assembly manifest?

1029


What is func delegate in c#?

947


State two different types of access modifiers.

1002


Where do I put dll files?

1004


What is the purpose of reserved word using in c#?

936


How do you escape c#?

887


Suppose two interfaces have same method, so how will you implement these methods in derive class?

977


When can a derived class override a base class member?

889


Is int reference type c#?

972


without modifying source code if we compile again, will it be generated MSIL again?

929


List the difference between the virtual method and the abstract method?

895


What is the purpose of c#?

1000


Define strong name in c#?

922