J
Jay
I am getting an error on my save dialog. No matter if I try and save a file
or cancel out of it. Below is what I have code.
Dim textstreamwriter As StreamWriter
Dim responsedialogresults As DialogResult
SaveFileDialog1.InitialDirectory = Application.StartupPath
responsedialogresults = SaveFileDialog1.ShowDialog
textstreamwriter.WriteLine(rtbFontBox.Text)
textstreamwriter.Flush()
textstreamwriter.Close()
If responsedialogresults = DialogResult.Cancel Then
textstreamwriter.Close()
End If
or cancel out of it. Below is what I have code.
Dim textstreamwriter As StreamWriter
Dim responsedialogresults As DialogResult
SaveFileDialog1.InitialDirectory = Application.StartupPath
responsedialogresults = SaveFileDialog1.ShowDialog
textstreamwriter.WriteLine(rtbFontBox.Text)
textstreamwriter.Flush()
textstreamwriter.Close()
If responsedialogresults = DialogResult.Cancel Then
textstreamwriter.Close()
End If