.NET SaveFileDialog bug
Visual Basic
1
Posts
1
Posters
0
Views
1
Watching
-
I ran into the following problem while working with SaveFileDialog. When saving a file, and existing file is selected, the common dialog box always returns DialogResult.Cancel. Is there a workaround? Dim SaveDlg As New SaveFileDialog() Dim RetCode As DialogResult RetCode = SaveDlg.ShowDialog() ' .NET bug???? ' When replacing existing file, ' Always returns DialogResult.Cancel If (RetCode = DialogResult.Cancel) Then ... End If