This save file dialogue works fine except when they click save, the dialogue opens and then they close the dialogue. when they close it, my program crashes, every time. i'm using this to save it
VB.NET:
Dim sfd As New SaveFileDialog
With sfd
.Filter = "Text Documents (*.txt)|*.txt|PHP (*php.*)|*php.*"
.FilterIndex = 1
.Title = "Save File As"
End With
sfd.ShowDialog()
IO.File.WriteAllText(sfd.FileName, Textbox.Text