When calling FolderBrowserDialog from the Forms library in a WPF/C# user control, Windows XP displays invalid characters.
Code:
FolderBrowserDialog dialog = new FolderBrowserDialog();
dialog.Description = "Save Parts Template To:";
if (dialog.ShowDialog() == DialogResult.OK)
{
MainWindow.Instance.LockUi();
btn_MakeModule.IsEnabled = false;
btn_SelectDefinition.IsEnabled = false;
btn_SelectModules.IsEnabled = false;
_mkPartsInput = tbox_SolutionName.Text.Trim() + ";"
+ dialog.SelectedPath + ";"
+ _ofdDefinition.FileName + ";"
+ _fbdModules.SelectedPath + ";"
+ _ofdDictionary.FileName;
//Launch processing in background
_mBackgroundWorker.RunWorkerAsync(_mkPartsInput);
}
Instead of showing "Save Parts Template To:"
I get "□□□□□□□□□□□□□□□□□□J"
The FolderBrowserDialog works on Windows 7[x86/x64] but gives the above on WinXP[x86/x64].
I have a feeling an installed language pack may be causing this folder browser to attempt to translate the text. Is there a way to force English for this text without any translations?
Thank you in advanced to whoever may resolve my problem.