Save File Minor Issue

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Trying to make a save file dialog for this program. I have it working without syntax errors but its telling me "empty path name is not legal" and gives me a "Argumentexception was unhandled"

<div style="color:Black;background-color:White; <pre>
<span style="color:Blue; Private <span style="color:Blue; Sub btnSave_Click(<span style="color:Blue; ByVal sender <span style="color:Blue; As System.Object, <span style="color:Blue; ByVal e <span style="color:Blue; As System.EventArgs) <span style="color:Blue; Handles btnSave.Click
<span style="color:Blue; Dim AppSerializer <span style="color:Blue; As Xml.Serialization.XmlSerializer = <span style="color:Blue; New Xml.Serialization.XmlSerializer(<span style="color:Blue; GetType(Storage))
<span style="color:Blue; Dim AppWriter <span style="color:Blue; As StreamWriter = <span style="color:Blue; New StreamWriter(SaveFileDialog1.FileName)
SaveFileDialog1.ShowDialog()
AppSerializer.Serialize(AppWriter, Storage)
AppWriter.Close()
<span style="color:Blue; Me.Update()
<span style="color:Blue; End <span style="color:Blue; Sub
[/code]
<br/>


View the full article
 
Back
Top