| | |
Format Number
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
It seems that .NET does not support Indian formatting for some reason. You have to implement formatting yourself, for example write your own (overloaded) ToString method. Shouldn't be that hard to write code for this.
I did find a one .NET implementation for this (both numbers and dates Indian Number & Date format, but the source code is in C#.
I did find a one .NET implementation for this (both numbers and dates Indian Number & Date format, but the source code is in C#.
Teme64 @ Windows Developer Blog
•
•
Join Date: Jan 2007
Posts: 1
Reputation:
Solved Threads: 0
•
•
•
•
Hi All,
Hope I'm now at the right place. Well.... I have a numeric field and I want to format the field as follows in the select statement. How should I do it??
For eg.
9000 - 9,000
10000 - 10,000
120200 - 1,20,200
etc....
Simply an indian format. How is that possible?
Thanks in advance.
Format(yourNo, "#,##0")
all the best
Last edited by penguinruwan; Dec 16th, 2008 at 2:03 am.
•
•
Join Date: May 2008
Posts: 144
Reputation:
Solved Threads: 9
Try this :
Go to Control Panel >>>> Regional Options >>> Numbers and change the "Digit Grouping" like 12,34,56,789 then OK
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Label1.Text = Format(Your No., "##,##0")
End Sub
Go to Control Panel >>>> Regional Options >>> Numbers and change the "Digit Grouping" like 12,34,56,789 then OK
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Label1.Text = Format(Your No., "##,##0")
End Sub
Last edited by sierrainfo; Dec 17th, 2008 at 8:32 am.
![]() |
Similar Threads
- Format of the number (C)
- Currency format in Bash Script (Shell Scripting)
- Format Number in Sql Query (Visual Basic 4 / 5 / 6)
- XSLT to copy a specific number of nodes (XML, XSLT and XPATH)
- Format Number as percentage. (PHP)
- Need help with java string.format (prepayment calculation) (Java)
- Lining up number at the decimal. (C)
- .htaccess mod_rewrite problem (Linux Servers and Apache)
Other Threads in the VB.NET Forum
- Previous Thread: Data from datatable after datagrid sorting
- Next Thread: to stop window minimization automatically
| Thread Tools | Search this Thread |
"crystal .net .net2005 30minutes 2005 2008 access arithmetic array assignment basic binary bing box button buttons center check code combobox component connectionstring convert cpu crystalreport data database databasesearch datagrid datagridview design dissertation dissertations dissertationthesis dosconsolevb.net dropdownlist editvb.net excel file-dialog firewall folder ftp google hardcopy image images isnumericfuntioncall login math memory mobile ms mssqlbackend mysql navigate net networking opacity output peertopeervideostreaming picturebox1 port print printpreview problemwithinstallation project record reports" reuse save savedialog searchbox serial soap storedprocedure string tcp temp text textbox timer toolbox trim updown useraccounts usercontrol vb vb.net vb.netcode vb.nettoolboxvisualbasic2008sidebar vb2008 vbnet view vista visual visualbasic visualbasic.net visualstudio web wpf





