>I want to retreive a reference to a container from any object in the
>container.
>
>If the container had a grid, and in the textbox in column 1, I would use:
>
>
>this.parent.parent.parent.Parent
>
>
>But if I had a command button on the same container, it would simply
>be
>
>this.parent
>
>
>Is there any way to get a reference to the container regardless of where I'm calling
>ir from?
As an akward way around it you can create a form's object reference property. I don't think there is another simple way. I guess you had to live with this inconvenience.
If it's not broken, fix it until it is.
My Blog