How to get/set current location in windows?

后端 未结 4 1001
渐次进展
渐次进展 2021-01-19 14:51

I need to be able to get/set current location in Win 7 (Control Panel -> Regional and Language -> Location):

\"W

4条回答
  •  萌比男神i
    2021-01-19 15:41

    You can use this code

    CultureInfo _CultureInfo = new CultureInfo("ru-RU");                
                Application.CurrentInputLanguage = InputLanguage.FromCulture(_CultureInfo);
                Application.CurrentCulture = _CultureInfo;
    

提交回复
热议问题