P
Peter Rilling
Hi.
I have a component that interacts with the main form. I would like to have
this component, when initialized, to automatically get a reference to the
form that is hosting it. I was hoping for something as easy as finding the
form that a control is attached to. However, I component has no Parent
property or FindForm method. It is weird because I drag a component onto
the form and yet it does not seem to be associated with the form.
How can I determine the form that a component was dropped onto?
I have a component that interacts with the main form. I would like to have
this component, when initialized, to automatically get a reference to the
form that is hosting it. I was hoping for something as easy as finding the
form that a control is attached to. However, I component has no Parent
property or FindForm method. It is weird because I drag a component onto
the form and yet it does not seem to be associated with the form.
How can I determine the form that a component was dropped onto?