loRegistry = newobject('Registry', home() + 'FFC\Registry.vcx') lcValue = '' #define cnHKEY_CLASSES_ROOT -2147483648 lcClassID = '{C74190B6-8589-11D1-B16A-00C0F0283628}' loRegistry.GetRegKey('', @lcValue, ; 'CLSID\' + lcClassID + '\InProcServer32', ; cnHKEY_CLASSES_ROOT) if empty(lcValue) * ActiveX control isn't registered endifIn this example, I set lcClassID to the class ID for the TreeView control. How do you know what the class ID is? Create a form, drop an OLE control on it, and in the Insert Object dialog that appears, select the ActiveX control you want. The class ID is shown in the "Result" area of the dialog.