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 / ambrish

Dim Number As Double = 156735.0
Dim info As System.Globalization.CultureInfo =
System.Globalization.CultureInfo.GetCultureInfo("hi-IN")
Dim str As String = Number.ToString("C2", info)
TextBox1.Text = str

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which are the access modifiers available in c#?

529


How we can create an array with non-default values?

521


Is there any sample c# code for simple threading?

571


What is an ienumerable in c#?

551


What is the difference between a constant and a static readonly field?

534






What does console readkey do in c#?

502


How many digits is a 32 bit number?

486


What is a framework in c#?

476


What is parsing? How to parse a date time string?

540


Why do I get a "cs5001: does not have an entry point defined" error when compiling?

515


What is console writeline in c#?

479


What is native image generator (ngen.exe)?

685


What are object pooling and connection pooling and difference? Where do we set the Min and Max Pool size for connection pooling?

606


Explain about c# language.

608


List down the commonly used types of exceptions in .net

506