SaveFileDialog problem

  • Thread starter Thread starter Robert Schwortschik
  • Start date Start date
R

Robert Schwortschik

Hi there!

I've got a problem with the SaveFileDialog. In my program, the user must be
able to choose a directory where he has no writing rights (the rights are
handled by the program later).

Now I've already set the property "CheckPathExists" to False in order to
prevent that this error message is created (I translate from German):
"The file cannot be accessed. Check the security rights".

The problem is: Despite of this, that error message is shown now if a
filename is chosen that already exists in that directory (although
"OverwritePrompt" is also set to False!).

So I cannot find a way to get rid of this stupid error message!
Any ideas?

Best regards
Robert Schwortschik
 
Hi Robert,

Can you not use the folderbrowserdialog for this.
It is new in VS 2003 and slightly is told by Microsoft that it is an
addition on VS 2002.

Herfried.K.Wagner is always telling that it has a terrible bug because there
are messages that when you open a path longer than 128characters your
program can hang.

Maybe it helps?

Cor
 
Well, the problem is, that I want the user also to specify a filename.
Using the FolderBrowserDialog the user can only choose a folder.
 
And than why not the openfiledialog?

It sounds so strange for me to use a savefiledialog on a directory with
write protection
 
Ok, I use now the OpenFileDialog that don't produces this error message.
Last problem: How can I adapt the button texts?
Since the user wants to save, the Button "Open" is not adequate...
 
Hi Robert,

OpenFD.title = "Save" 'In german than of course

I hope this solves your problem?

Cor
 
Yeah, thanks, but there's is no reply yet how to change the button labels
of the SaveFileDialog control. :-)
 
* "Robert Schwortschik said:
Yeah, thanks, but there's is no reply yet how to change the button labels
of the SaveFileDialog control. :-)

Yes, there is...

;-)
 
Back
Top