change regional (language)

i want change current windows regional in my system
in fact i want change digits shape into my country digits shape (Farsi)
windows default regional is English(United states) and i want change it in my application to Farsi
in english regional digits are 1234567890
but in farsi regional digits are
i just want do it :(
please help me




Answer this question

change regional (language)

  • IIM

    thank you for reply
    i did it but show digits 123456789 :(
    when i set region language from settings->control panel->regional and language to Farsi it show digits
    how can i do it in my application
    or how can i set nativdigirts for current inputlanguages info



  • LDeLeon

    Well, I did not try it, but you should:

    1) use a font that supports unicode for all elements in your application that have to show these characters (I think there is an Arial Unicode or so)

    2) try switching the current culture in your application by setting the thread culture and ui culture:
    System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(" ");
    System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo(" ");
    // replace the question marks with the appropriate culture string or LCID, for US it would be "en-US" for German "de-DE"

    http://msdn2.microsoft.com/en-us/library/system.globalization.cultureinfo.aspx


  • change regional (language)