With some controls, you would have a problem under runtime just instanciating the control. So you are probably better off, dropping the control on a form. You can then save that form as a class and instanciate that class instead. Otherwise, you may have better luck using MyObject.Object.Name, for example, intead.
>Hi!
>
>I'm try create a instance of the OCX "XCDZIP35.OCX" and the object not show properties through Debbug and I don´t can set or see the properties values, occur errors.
>I'm creating the instance so:
>
>
>* Create instance
>MyObject = CreateObject("XCEEDZIP.XceedZipCtrl.1")
>
>* Name property
>? MyObject.Name
>
>* IncludeHiddenFiles property
>MyObject.IncludeHiddenFiles = .T.
>
>
>
>If I put the OCX in the form, it works well, but I would like of to work with the instance.
>Any idea?
>
>Thanks in advance!
>Bye!
Mark McCasland
Midlothian, TX USA