I have a common dialog object, and I'd like to know which button was clicked when the dialog closes.
OK, here's the whole story... I don't want to generate and trap the cancel error in my save as dialog. There must be a better way to do that, and I'm on a quest to find it. No luck so far though, except that I understand what I need to do. When the dialog closes, I need to check to see if it was closed by the cancel button being clicked. If so, do nothing. If not, then do the save (export actually, in Crystal Reports).
I can't find a way to know if the cancel button was clicked though, other than generating and trapping that error.
I refuse to intentionally generate an error. It goes against the foundation of my belief system. It's an egregious affront to all decent principles of programming.
Thanks,
John
OK, here's the whole story... I don't want to generate and trap the cancel error in my save as dialog. There must be a better way to do that, and I'm on a quest to find it. No luck so far though, except that I understand what I need to do. When the dialog closes, I need to check to see if it was closed by the cancel button being clicked. If so, do nothing. If not, then do the save (export actually, in Crystal Reports).
I can't find a way to know if the cancel button was clicked though, other than generating and trapping that error.
I refuse to intentionally generate an error. It goes against the foundation of my belief system. It's an egregious affront to all decent principles of programming.
Thanks,
John