Hi Sergey,
I just got the answer myself. Insteat of the following command:
Thisformset.Form1.MyVCX1 = CreateObject('MyVCX')
I wrote:
Thisformset.AddObject('MyVCX1', 'MyVCX')
Have a great day,
Ali
>Hi Ali,
>
>Your object cannot reference Thisformset becose it doesn't belong to the FormSet. You''ll have to pass Thisformset as a parameter to your object when you call it or get reference to the formset some other way. Can you provide more info about that control and how you call it?
>
>>Hi Fred,
>>
>>I added my VCX to one of my forms, but still I have the same problem. I might confused you by choosing ListBox as a name for my VCX, so:
>>
>>ThisFormSet.Form1.AddProperty(‘MyVCX1’)
>>Thisformset.Form1.MyVCX1 = CreateObject('MyVCX')
>>
>>
>>Inside DblClick() event of a listBox which is located in MyVCX, I call
ThisFormset.FORM1.List1.Enabled = .T.
>>
>>
>>I hope it makes sense.
>>
>>Thank you very much,
>>Ali