The information in this article applies to:
SYMPTOMSYou are passing an object to an ActiveX component, and attempting to use the TypeOf operator to determine if the passed object is a form. TypeOf returns False, even if the object is a form. RESOLUTIONDo not pass or return forms, controls, or other private objects as method arguments of an ActiveX component or control. Such objects are not intended for use in this manner, even though such operations may have succeeded in previous versions of Visual Basic. See the REFERENCES section below for more information. STATUSThis behavior is by design. MORE INFORMATIONSteps to Reproduce Behavior
REFERENCESFor more information, query on the topic "On the Evils of Returning Private Objects" in Visual Basic 5.0 Books Online or Visual Basic 6.0 Online Help. Additional query words: kbDSupport kbDSD kbVBp kbVBp500 kbVBp600 kbCtrl
Keywords : kbGrpVB |
Last Reviewed: January 5, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |