The information in this article applies to:
SYMPTOMSA form containing the Treeview control suddenly loses the images shown in the Treeview. This happens after any property of the Treeview control was modified in the Form Designer. CAUSE
Right-clicking on the Treeview control in the Form Designer reveals a
context menu. The bottom bar of that menu opens the TreeCtrl Properties
dialog box. That dialog box holds a PageFrame with three pages. Page 1 has
the caption "General." It holds a stack of nine ComboBox controls, plus
other objects. The fifth ComboBox from the top is labeled "ImageList"
(without the quotes).
RESOLUTIONThe ImageList must be specified in code. For example, if the form has an ImageList in OLE container control "OleControl1," then in the Init event method for the OLE container control that holds the Treeview, add a command similar to the following: The above is only a suggestion. The specifics of the application determines where to make the modification and the appropriate syntax to use. NOTE: The symptoms listed in this article also apply to the ListView control. The code for a workaround using the ListView control follows:
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. MORE INFORMATIONSteps to Reproduce BehaviorUse the following steps in Microsoft Visual FoxPro 5.0 for Windows:
Additional query words:
Keywords : kbVFp FxinteropOcx FxinteropOle FxprgClassoop |
Last Reviewed: August 3, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |