I have a textbox with "10000" i want to format it to "10,000.00". How i can make it in vb.net ..
hery
0
Light Poster
Recommended Answers
Jump to PostDim n As Integer = 10000 TextBox1.Text = n.ToString("##,##,###.00")
Jump to Posthmm how about this?
Dim floating As Double = 10761.937554 TextBox1.Text = floating.ToString("N02")
seems more dynamic in case you have just 1000 or 1000000
All 7 Replies
kvprajapati
1,826
Posting Genius
Team Colleague
hery
0
Light Poster
GeekByChoiCe
152
Practically a Master Poster
Featured Poster
sknake
1,622
Senior Poster
Featured Poster
hery
0
Light Poster
GeekByChoiCe
152
Practically a Master Poster
Featured Poster
samir_ibrahim
58
Junior Poster
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.