programming fool
June 16th, 2001, 09:28 AM
How do I tell which button was pressed (Cancel or OK) on the Common Dialog?
|
Click to See Complete Forum and Search --> : Common Dialogs programming fool June 16th, 2001, 09:28 AM How do I tell which button was pressed (Cancel or OK) on the Common Dialog? John G Duffy June 16th, 2001, 10:09 AM Set CancelError = true and Err.NUmber will be set. Try this sample. Start a new project. Add this code to the Form_load event. Run it. Watch the results private Sub Form_Load() on error resume next CommonDialog1.CancelError = true CommonDialog1.ShowPrinter MsgBox Err.Number End End Sub John G codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |