I am using System.Forms.SaveFileDialog . My native language in my OS is japanese. When saving an existing file the overwriteprompt states “xxx already exists,Do you want to replace it?” , shouldn’t it be in japanese and not in english, since system locale is in japanese? Arigato..
I am using System.Forms.SaveFileDialog . My native language in my OS is japanese. When
Share
The SaveFileDialog class is a thin wrapper around a dialog implemented by the operating system. You’ll see the exact same one in, say, Notepad. The warning message is displayed by that dialog, not .NET code. IFileDialog::SetOptions() method, FOS_OVERWRITEPROMPT option. It is enabled by default.
So you need to look at your operating system config for the problem. Like an English version of Windows, switched to Japanese as the default language. Which gets programs that support Japanese localization to display Japanese, including .NET, but leaves all OS dialogs in English. Or having the Ultimate edition with both English and Japanese language packs installed and some code switching the Thread.CurrentCulture to English. If not your code then a misbehaving shell extension could do that.