get reference of the containing form
From: Neo (neo_at_learning.net)
Date: 01/15/05
- Next message: barry: "problem declaring"
- Previous message: Jim Burns: "Re: Handlers"
- Next in thread: Cor Ligthert: "Re: get reference of the containing form"
- Reply: Cor Ligthert: "Re: get reference of the containing form"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 15 Jan 2005 13:57:56 +1100
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.
- Next message: barry: "problem declaring"
- Previous message: Jim Burns: "Re: Handlers"
- Next in thread: Cor Ligthert: "Re: get reference of the containing form"
- Reply: Cor Ligthert: "Re: get reference of the containing form"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|