By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,693 Members | 1,565 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,693 IT Pros & Developers. It's quick & easy.

Saving stream message in Save As dialog

P: n/a
I am trying to open up Save As dialog to save dynamically generated message
on the fly. Clients will specify path and type file name. Thanks.
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Joseph" <Jo****@discussions.microsoft.com> schrieb:
I am trying to open up Save As dialog to save dynamically generated message
on the fly. Clients will specify path and type file name.


\\\
Dim sfdlg As New SaveFileDialog()
If sfdlg.ShowDialog() = DialogResult.OK Then
Dim sw As New StreamWriter(sfdlg.FileName)
sw.WriteLine("Hello World")
sw.Close()
End If
sfdlg.Dispose()
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.