I
Ingvar Nilsen
I have a component (System.ComponentModel.Component)
and want to access the Page that "owns" it, during runtime.
Yes, I can write a public property and set that property in the
designer, and thereby get access to it at runtime, but I want to be
smarter than that.
Somehow the component has to "know" the Page it sits on.
I want access to that Page object early in the initialization process,
when the component is created.
If I have that Page object, I can for example add certain events to the
Page.
Any ideas?
and want to access the Page that "owns" it, during runtime.
Yes, I can write a public property and set that property in the
designer, and thereby get access to it at runtime, but I want to be
smarter than that.
Somehow the component has to "know" the Page it sits on.
I want access to that Page object early in the initialization process,
when the component is created.
If I have that Page object, I can for example add certain events to the
Page.
Any ideas?