G
Guest
I am trying to get the save/open dialog figured out. I am able open the save
dialog but when I put in a file name (whatever.txt) and save the file does
save with the name but it is blank. Below is what I have code so far.
Dim phonestreamwriter As StreamWriter
Dim responsedialogresults As DialogResult
SaveFileDialog1.InitialDirectory = Application.StartupPath
responsedialogresults = SaveFileDialog1.ShowDialog
If responsedialogresults <> DialogResult.Cancel Then
phonestreamwriter = New StreamWriter(SaveFileDialog1.FileName)
End If
dialog but when I put in a file name (whatever.txt) and save the file does
save with the name but it is blank. Below is what I have code so far.
Dim phonestreamwriter As StreamWriter
Dim responsedialogresults As DialogResult
SaveFileDialog1.InitialDirectory = Application.StartupPath
responsedialogresults = SaveFileDialog1.ShowDialog
If responsedialogresults <> DialogResult.Cancel Then
phonestreamwriter = New StreamWriter(SaveFileDialog1.FileName)
End If