4
Contributors
5
Replies
6
Views
8 Years
Discussion Span
Last Post by mIssy_ricco
0

Use the classes of namespace System.Globalization - CultureInfo class

I used it.but when I want to enter Numbers it's not in a language that I want.my code is:

InputLanguage.CurrentInputLanguage=InputLanguage.FromCulture(new System.Globalization.CultureInfo("fa-IR"));

In this way Just my letters will become "Farsi" but my digits are still "english".

0

Change the locale setting in your machine via the control panel :)

I want when the user run the application this change happen programatically and when User close the app it returns to machine's base setting.
I understand that I should use "NativeDigits" but I don't know HOW and Where?

-1

if you change ur local setting. only your pc will be ok.
try putting this into you web.config just below

<system.web>
      <globalization uiCulture="en" culture="en-US" />

if u want UK style... en-GB. hope that helps :D

Votes + Comments
It's not a web app.
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.