The FileName returned is empty when user cancels - if they click ok it has path\filename
Thanks for your response Chris. I have already tried that approach but it won't work for me in this particular case as I need to default FileName to a specific value before presenting the Common Dialog box therefore FileName will never be empty even if the user cancels.