Skip to content

Commit

Permalink
Added: All Files Filter to MDINotepad example Save Dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
XusinboyBekchanov committed Sep 5, 2022
1 parent 539d78c commit 00ccaac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Examples/MDINotepad/MDIMain.frm
Original file line number Diff line number Diff line change
Expand Up @@ -928,6 +928,7 @@ Private Sub MDIMainType.mnuFile_Click(ByRef Sender As MenuItem)
a->Changed = False
End If
Case "mnuFileSaveAs"
SaveFileDialog1.Filter = "All Files (*.*)|*.*"
If SaveFileDialog1.Execute() Then
If PathFileExists(SaveFileDialog1.FileName) Then
If MsgBox(!"Overwrite file?\r\n" & SaveFileDialog1.FileName, "Confirm", mtQuestion, btYesNo) <> mrYes Then
Expand Down

0 comments on commit 00ccaac

Please sign in to comment.