im having a problem with comm dialog box control whenever i try to save a file it dont ask me to replace a file if it already exists so any body so how can i make it to ask whether to replace the file if it already exists
Printable View
im having a problem with comm dialog box control whenever i try to save a file it dont ask me to replace a file if it already exists so any body so how can i make it to ask whether to replace the file if it already exists
Declare the above and set the flag before saving to OFN_OVERWRITEPROMPTCode:Public Const OFN_OVERWRITEPROMPT = &H2&
These are the other constants for File Open/Save Dialog Flags
Code:Public Const OFN_READONLY = &H1&
Public Const OFN_HIDEREADONLY = &H4&
Public Const OFN_NOCHANGEDIR = &H8&
Public Const OFN_SHOWHELP = &H10&
Public Const OFN_NOVALIDATE = &H100&
Public Const OFN_ALLOWMULTISELECT = &H200&
Public Const OFN_EXTENSIONDIFFERENT = &H400&
Public Const OFN_PATHMUSTEXIST = &H800&
Public Const OFN_FILEMUSTEXIST = &H1000&
Public Const OFN_CREATEPROMPT = &H2000&
Public Const OFN_SHAREAWARE = &H4000&
Public Const OFN_NOREADONLYRETURN = &H8000&
Or you can use the built-in constants of the common dialog control.
cdlOFNxxxxx constants (i.e., cdlOFNOverwritePrompt)
Or a dir check...