SaveFileDialog don't save when file is open

Snosky

Member
Joined
Dec 28, 2005
Messages
17
Programming Experience
1-3
Hi

When I click on a button a savefiledialog will appear. As long as the file isn't open the saving will be done correctly but when I save i.e.

"example.xls"

and that file already exists in that directory and is already open I will get an error. How can i suppress that error IN the saveFileDialog itself?

Like word 2003 .

Thanx in advance
 
set this before you show the dialog:
VB.NET:
SaveFileDialog1.OverwritePrompt = False
 
Back
Top