Cerebrus
unread,Jul 9, 2007, 11:41:59 PM7/9/07Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
The SaveFileDialog is just an interface to obtain the desired save
location and filename from the user. It does *not* do the actual job
of saving the file. That job is done by your code.
Since your code already has the desired location and other information
(assuming you got a filename earlier too), there is no reason at all
for you to show a SaveFileDialog. The SaveFileDialog.OpenFile() method
returns a Stream referencing the target file that you can write to,
and when you close the stream, your file is saved. That's what happens
in the background.