Shawn,

I couldn't reproduce it.  I dropped a Save Dialog onto a Form and used the
following code:

MessageBox.Show(saveFileDialog1.ShowDialog(this).ToString());

which displayed 'OK' unless I pressed the cancel button in which case it
displayed 'Cancel'.  The value of the OverwritePrompt didn't have any
effect on my end result.

Russ


At 02:45 PM 7/14/2003 -0700, you wrote:
I got no response on this post at dotnet-winforms...  thought I'd escalate
it here, hoping somebody can confirm this as a bug.

Alternatively, if you try to repro and can't, please let me know that
too.  It may be a strange symptom of some obscure shell setting I've got
configured, or something.  Crazier things have happened...  you never know.

-S

----- Original Message -----
From: "Shawn A. Van Ness" <[EMAIL PROTECTED]>
Sent: Friday, July 04, 2003 06:39
Subject: Bug in SaveFileDialog.OverwritePrompt?

.NET v1.1...

When SaveFileDialog.OverwritePrompt is set to true (the default), the
DialogResult returned by SaveFileDialog.ShowDialog is "Cancel", when the
user chooses "yes" to overwrite an existing file.

http://www.arithex.com/temp/SFDbug.cs.html

Turning off the OverwritePrompt feature (uncomment the line of code, in
the above sample) returns "OK" when an existing file is chosen.

Am I missing something?  I found one reference to this in the archives,
from way way back in v1.0 days, but nobody claimed to be able to repro.
http://discuss.develop.com/archives/wa.exe?A2=ind0206A&L=DOTNET-CLR&P=690

-S

Reply via email to