here is my code it only opens the dialog but doesnt save anything Dim filepath As String = String.Empty If (sfdSaveSurvey.ShowDialog() = Windows.Forms.DialogResult.OK) Then filepath = sfdSaveSurvey.FileName End If 'xmldoc.Save( filepath ) :confused: :sigh: