Here's where VFP 8 (i think 7, too) might be helpful.
In the command window (VFP 8) do this:
O=CREATEOBJECT('Charge.OCXCharge')
the, when you type "O.", an object browser intellisense list should appear to reveal the root properties and methods available. Does this happen when you create the object in the command window?
>Sergey,
>Thanks, but it's not working with the control I am trying to use.
>
>DEFINE CLASS pcChargeControl AS OLEControl
> OLECLASS='Charge.OCXCharge'
>ENDDEFINE
>
>I am using the correct typelib reference, because the statement
>O=CREATEOBJECT('Charge.OCXCharge')
>works.
>
>Do you see something that I missed?
>
>>>How can I programmatically subclass an OCX Control?
>>>
>>
DEFINE CLASS myListView as olecontrol
>> OleClass = 'mscomctllib.listviewctrl.2'
>>ENDDEFINE
>>
Imagination is more important than knowledge