The information in this article applies to:
SYMPTOMSWhen using the Microsoft Visual Basic sample application OLECont, the following error may occur: This error occurs when the sample application is run and the user clicks Cancel when attempting to use Save As from the File menu of the sample application. CAUSEThe CancelError property of the CommonDialog is not set to True. Therefore, the run-time error is executed. RESOLUTIONTo allow the Common Dialog control to be cancelled during a Save, the CancelError property of the CommonDialog should be set to True. The following line of code allows the Cancel button to function correctly:
The line of code above should be entered into the OpenSave subroutine in
the ModOLECont module immediately below the following lines of the
subroutine, as follows:
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available. MORE INFORMATIONSteps to Reproduce
Additional query words: kbDSupport kbdss kbDSupport kbVBp600bug kbVBp kbCodeSamProd
Keywords : kbGrpVB |
Last Reviewed: January 5, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |