SaveFileDialog problem

  • Thread starter Robert Schwortschik
  • 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
 
C

Cor

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
 
R

Robert Schwortschik

Well, the problem is, that I want the user also to specify a filename.
Using the FolderBrowserDialog the user can only choose a folder.
 
C

Cor

And than why not the openfiledialog?

It sounds so strange for me to use a savefiledialog on a directory with
write protection
 
R

Robert Schwortschik

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...
 
C

Cor

Hi Robert,

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

I hope this solves your problem?

Cor
 
R

Robert Schwortschik

Sorry no, I meant the text of the BUTTON. (Currently saying "Open").
 
R

Robert Schwortschik

Yeah, thanks, but there's is no reply yet how to change the button labels
of the SaveFileDialog control. :)
 
H

Herfried K. Wagner [MVP]

* "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...

;-)
 

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

Similar Threads


Top