Microsoft
70-511 · Question #55
You use Microsoft .NET Framework 4 to create a Windows Forms application. You need to allow the user interface to use the currently configured culture settings in the Control Panel. Which code…
The correct answer is A. Thread.CurrentThread.CurrentUICulture = Thread.CurrentThread.CurrentCulture. See the full explanation below for the reasoning.
Question
You use Microsoft .NET Framework 4 to create a Windows Forms application. You need to allow the user interface to use the currently configured culture settings in the Control Panel. Which code segment should you use?
Options
- AThread.CurrentThread.CurrentUICulture = Thread.CurrentThread.CurrentCulture;
- BThread.CurrentThread.CurrentCulture = Thread.CurrentThread.CurrentUICulture;
- CThread.CurrentThread.CurrentUICulture = CultureInfo.InstalledUICulture;
- DThread.CurrentThread.CurrentCulture = CultureInfo.InstalledUICulture;
How the community answered
(38 responses)- A79% (30)
- B11% (4)
- C8% (3)
- D3% (1)
Community Discussion
No community discussion yet for this question.