SaveFileDialog translation issue

B

berylwilson

Hi all.

In my application I use SaveFileDialog as follows.

SaveFileDialog exportFileDialog = new SaveFileDialog();
exportFileDialog.Filter = "csv files (*.csv)|*.csv";
exportFileDialog.RestoreDirectory = true ;

exportFileDialog.CreatePrompt = true;

Since I have enabled CreatePrompt to true, for every new file am
prompted with a message box with the following message.

"C:\xyx.csv" does not exist. Do you want to create it?"

My issues is that, when I execute this application in French Windows
XP, title and the buttons of this message box are translated to French
but the above message is in English. I don't understand why this
message ("...does not exist. Do you want to create it?") is not
translated to French?

Title was translated to "Enregistrer sous" and OK and cancel was
translated to "Oui" & "Non".

Thanks in advance.
 
A

A. Petrov

Most probably this problem occurs if you install English .NET framework over
French Windows.
Standard .NET dialog components does not localize some strings.

Show your own dialog in FileOk event and set CreatePrompt to false.

Regards,
Alex
http://www.componentage.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top