
January 7th, 2009, 08:44 PM
|
|
Friend of Wrox
|
|
Join Date: Sep 2005
Location: , , .
Posts: 415
Thanks: 0
Thanked 14 Times in 14 Posts
|
|
Hi
You can remove the lines that shows the SaveFileDialog and insert something similar
sText = TextBox1.text & ".txt"
sPAth = "c:\temp\"
sFile = sPath & sText
Recipe = New StreamWriter(sFile, False)
instead of this
results = SaveFileDialog1.ShowDialog
If results = DialogResult.OK Then
Recipe = New StreamWriter(SaveFileDialog1.FileName, False)
|