nerdexam
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)
  • A
    79% (30)
  • B
    11% (4)
  • C
    8% (3)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 70-511 Practice