It should be
.cClass = "OleControl" >I recently upgraded from VFP7 to VFP9. One line of code which worked fine under VFP7 now fails under VFP9 with the message: Class Definition cImageList is not found, Error 1733
>
>This.Parent.AddObject(.cNewObjectName, .cClass, lcProgID)
>
>Where .cNewObjectName = "ImageList", .cClass = "cImageList", lcProgID = "MSComctlLib.ImagelistCtrl.2"
>
>Is this something specific to that ActiveX control or does VFP9 require different syntax? C:\Windows\system32\mscomctl.ocx is present. Please let me know if I need to provide additional information to solve this problem
--sb--