The information in this article applies to:
SYMPTOMSThe ImageList ActiveX control is used to store a set of images for use with other ActiveX controls. When setting the Picture property of an ActiveX control to an image in the ImageList control, the following error may occur:
CAUSEThe Picture property may have been omitted from the reference to the ImageList control. STATUSMicrosoft is researching this behavior and will post new information here in the Microsoft Knowledge Base as it becomes available. MORE INFORMATIONThe ImageList ActiveX control allows you to load all the .bmp files and .ico files that may be needed for other ActiveX controls. You can then set the Picture property of an ActiveX control to reference any of the images in the ImageList control. The following command is an example of assigning the first image to the Picture property of an ActiveX control:
If the Picture property is omitted from the end of the reference, the
following error message occurs:
Steps to Reproduce BehaviorThe following program demonstrates the correct and incorrect way to change a Picture Property of an ActiveX control using an image from the ImageList control.
When you run the above code, the "Change Image Works" button displays the
Fox.bmp file from the ImageList control. The "Change Image Fails" button
causes an "Invalid Page Fault" error.
In Visual FoxPro 6.0, you do not get the "Invalid Page Fault" error, instead you get the following error message:
REFERENCESFor more information on the ActiveX controls that shipped with Visual FoxPro 5.0, see Help and the Ctrlref.hlp file located in the Vfp\Ctrlhlp directory. Additional query words:
Keywords : kbActiveX kbVFp500 kbVFp600 FxprgGeneral |
Last Reviewed: August 3, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |