Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Imagelist Unknown Com Status
Message
From
03/07/2001 16:21:53
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Imagelist Unknown Com Status
Miscellaneous
Thread ID:
00526466
Message ID:
00526466
Views:
41
I have a form with a treeview control on it. In the forms init I have
THIS.oImageList = CreateObject('MSComCtlLib.ImageListCtrl')
WITH THIS.oImageList.ListImages
   .Add(1,"folder",  LoadPicture("folder.ico"))
   *-- A buch of other adds
ENDWITH
THIS.ole_TreeView.ImageList = THIS.oImageList
When I run the form though foxpro it runs just fine. I make an exe out of it and I get Unknow Com status code. I traced it down to the imagelist and the adds but if I take out the adds then I get the error imagelist must be init. I don't know what to do next. I have added the imagelist to the form with an olecontrol instead of the createobject and it still does the same thing. Any help?
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Next
Reply
Map
View

Click here to load this message in the networking platform