Dim sfdSave As New SaveFileDialog
Dim dlgResult as DialogResult
With sfdSave
.Filter="Text Files (*.txt)|*.txt|All Files (*.*)|*.*"
.FileName = System.Environment.GetFolderPath(Environment.SpecialFolder.Desktop) & "\"
.DefaultExt = ""
.Title = "Save the File"
dlgResult = .ShowDialog()
End With
If dlgResult <> DialogResult.Cancel Then
'do file save stuff
End If
Never having used the CF myself, I can only go by what the documentation says. Neither of those properties is marked as being supported. I'd be interested to know, if no exception is thrown, whether they function as expected when you use them on the CF or are they simply ignored?JuggaloBrotha said:actually those are supported by the CF as i've used them on it without any errors
so either they're supported or things like DefaultExt doesn't throw any exceptions
Most interesting, and thanks for following up. I guess the moral of the story is to try whatever members you want to use on the CF and then look for an alternative if they don't work.JuggaloBrotha said:jmcilhinney i've tested the savefile dialog on the CF and it works the same as on the full framework