K
Ken Allen
I have enocuntered something wierd.
If I invoke an instance of the above dialog and elect to save the file in a
directory where a file of that name does not exist, then the return is
DialogResult.OK, but if I elect to save the file on top of a file with the
same name in the same directory, when I press the Save button I get a "do
you want to overwrite" dialog -- even if I press OK the SaveFileDialog
returns DialogResult.Cancel!
How can I detect that the user actually pressed Save and elected to
overwrite an existing file?
-Ken
If I invoke an instance of the above dialog and elect to save the file in a
directory where a file of that name does not exist, then the return is
DialogResult.OK, but if I elect to save the file on top of a file with the
same name in the same directory, when I press the Save button I get a "do
you want to overwrite" dialog -- even if I press OK the SaveFileDialog
returns DialogResult.Cancel!
How can I detect that the user actually pressed Save and elected to
overwrite an existing file?
-Ken