Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_SCREEN not support ole objects
Message
From
29/04/2003 13:29:57
 
 
To
29/04/2003 13:20:20
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00781073
Message ID:
00782827
Views:
11
Vfp6 Sp5: error "Object class is invalid for this container"


>I may be missing something... look, I just tried out this piece of code, and it runs like a charm:
>
>
>_Screen.AddObject("blah", "test")
>MessageBox(_Screen.Blah.Name)
>
>Define Class test As Container
>
>	Name = "MyTest"
>
>	Add Object olecontrol1 As OleControl With ;
>		Name = "Olecontrol1",;
>		OLEClass = "MSComctlLib.ImageListCtrl.2"
>
>
>Enddefine
>
>
>It is a class based on "container", with an ActiveX ImagaList inside it... isn't that what you have?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform