C# BackgroundWorker's culture

前端 未结 6 892
情歌与酒
情歌与酒 2021-02-07 04:28

I woudl like to set the culture for my whole application. I tried the following :

Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(wanted         


        
6条回答
  •  不知归路
    2021-02-07 05:00

    Windows always initializes an OS thread to the system default LCID, configured in the Regional and Language Options applet in Control Panel.

    Unfortunately I have to disagree with this and have found the opposite.

    System was installed as US English. Went to control panel changed everything to Danish and copied to all accounts. Rebooted.

    Run console app it runs in danish. Run web app ask browser it says danish. Launch thread from web app and it's launched as US not danish and I can't figure out why.

提交回复
热议问题