Hi Sergey,
Thank you for taking your time. This is a child Window that includes a ListBox. I activated it:
ACTIVATE WINDOW (MyVCX1) IN WINDOW ('Form1')
Form1 is located inside formset1.
I think, if I know how to access a parent window inside a child window, my problem will get solved.
I really appriciated,
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