View Single Post
  #2 (permalink)  
Old January 7th, 2009, 08:44 PM
Shasur Shasur is offline
Friend of Wrox
Points: 1,434, Level: 15
Points: 1,434, Level: 15 Points: 1,434, Level: 15 Points: 1,434, Level: 15
Activity: 11%
Activity: 11% Activity: 11% Activity: 11%
 
Join Date: Sep 2005
Location: , , .
Posts: 415
Thanks: 0
Thanked 14 Times in 14 Posts
Default

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)
__________________
C# Code Snippets (http://www.dotnetdud.blogspot.com)

VBA Tips & Tricks (http://www.vbadud.blogspot.com)
Reply With Quote