![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| Guest | Format the number Dear All, I am using VS 2008. I have a Textbox which allow only numeric chars alone. While leave from the TextBox I want to format the number like the Format style that the user defined If Format Style is Indian System Ex 123456789 value should be displayed like this 12,34,56,789 If Format Style is Western System Ex 123456789 value should be displayed like this 123,456,789 I have test the following Format(MyNumericValue.ToString, "##,##,##0.00") It is not work fine. It give the value like this only 123,456,789 Can any one show me the right path? Thanks in Advance. Regards, Karthik.C |
My System Specs![]() |
| | #2 (permalink) |
| Guest | Re: Format the number Karthik wrote on 30-6-2009 : Quote: > Dear All, > > > > I am using VS 2008. > > I have a Textbox which allow only numeric chars alone. > > While leave from the TextBox I want to format the number like the Format > style that the user defined > > If Format Style is Indian System > > Ex 123456789 value should be displayed like this 12,34,56,789 > > If Format Style is Western System > > Ex 123456789 value should be displayed like this 123,456,789 > > > > I have test the following > > Format(MyNumericValue.ToString, "##,##,##0.00") > > It is not work fine. It give the value like this only 123,456,789 > > > > Can any one show me the right path? > > Thanks in Advance. > > > > Regards, > > Karthik.C int i=123456789; CultureInfo c = new CultureInfo("hi-IN"); string s = i.ToString("#,##0", c); Hans Kesting |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| -f format Format-Table Format-List against Select | PowerShell | |||
| Windows Mail format bar doesn't format color, size, justification | Browsers & Mail | |||
| How do I change the default endnote number format? | Vista General | |||
| Converting date time format to string format | PowerShell | |||
| Help! DVD format error: "Windows was unable to complete the format | Vista General | |||