I am trying to create a custom control, & in this control i need to access
the form where this control is added.
How can i do this.
- I tried to accept a new parameter in the constructor of this new control,
but then i can't drop the control onto the form.
- I don't want to drop the control onto the form & set the reference to the
form in a property of the control from code, because if i want to drop this
control 10 times in 10 forms, then this means that i will always have to set
the reference of the form in a property of this control.
I just want to access the form from my control & do not want to put ANY code
in the form (but only have to be able to drop this control on the form and
this will be enough)
How can i resolve my problem.