Im getting an "ArgumentException was unhandled" error when trying to save a document written in my application.
Says "Empty path name is not legal"
I know its a problem with this sub because I get all other functions working.
Codus Problamaticus
If you need any more code just give me a shout.
EDIT: This was written in VB.NET 2005 and im using 2008 now, could that be the problem? Worked perfect in 2005, but ive upgraded
Says "Empty path name is not legal"
I know its a problem with this sub because I get all other functions working.
Codus Problamaticus
VB.NET:
Private Sub ToolStripButton3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripButton3.Click
Dim SW As New IO.StreamWriter(SaveFileDialog1.FileName)
If SaveFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
SW.Write(TextBox1.Text)
SW.Flush()
SW.Close()
FileOpen(1, SaveFileDialog1.FileName, OpenMode.Output)
Print(1, TextBox1.Text)
FileClose(1)
End If
End Sub
If you need any more code just give me a shout.
EDIT: This was written in VB.NET 2005 and im using 2008 now, could that be the problem? Worked perfect in 2005, but ive upgraded
Last edited: