How to reference to the owner or container of a component?

  • Thread starter Thread starter M Shafaat
  • Start date Start date
M

M Shafaat

Hi,
I want to find the owner and/or container of a component. It might be
control or other kinds of components.


I have tried with many variants of code like "this.Container." or
"this.Owner." etc. without success.


Regards
M Shafaat
 
M said:
Hi,
I want to find the owner and/or container of a component. It might be
control or other kinds of components.


I have tried with many variants of code like "this.Container." or
"this.Owner." etc. without success.


Regards
M Shafaat

this.Parent
 
Thank you MuZZy for your reply, which is a good help. But "this.Parent"
functions only for controls. I am looking for a more common solution which
covers components and even other objects.

Regards
M Shafaat
 
Back
Top