Hi.
I have this application that loads the Common Dialog Box whenever a user clicks on Save Button. I need to check if the filename the user entered is existing and prompts the user if the file is to be overwritten.
I have set the common dialog flag as :
CommonDialog1.Flags = cdlOFNOverwritePrompt
CommonDialog1.ShowSave
this will automatic prompts the user in form of a msgbox if the file is to be overwritten, but how do I check what the user has clicked i.e. Yes or No on the msgbox, is there a way to detect?
Thanks for the help.
I have this application that loads the Common Dialog Box whenever a user clicks on Save Button. I need to check if the filename the user entered is existing and prompts the user if the file is to be overwritten.
I have set the common dialog flag as :
CommonDialog1.Flags = cdlOFNOverwritePrompt
CommonDialog1.ShowSave
this will automatic prompts the user in form of a msgbox if the file is to be overwritten, but how do I check what the user has clicked i.e. Yes or No on the msgbox, is there a way to detect?
Thanks for the help.