Dear Experts,

How to display INT value in textbox1 in this format

45,75,147.45

I do not want to use MaskedTextbox

Please help

Recommended Answers

All 2 Replies

Hi,

Try This Code :

Dim t As Double
t = 4575147.45
Dim cfi As CultureInfo = New CultureInfo("hi-IN")
TextBox2.Text = t.ToString("N", cfi.NumberFormat)

Regards
Veena

Hi,

for the above code, you need to import the following:

Imports System.Globalization

Regards
Veena

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.