T
tsteinke
I am trying to make a Component that is aware of the Form that it is
added to. I noticed that when you drop a MainMenu onto a form the
designer generates the code.
this.Menu = this.mainMenu1;
Obviously the component knows that it is being added to a form and
knows what property it needs to set on it.
How would one go about implementing this? Is this an example of Custom
code generation? A custom designer? or is there a far more straight
forward way of doing this?
Thank you in advance.
Tom
added to. I noticed that when you drop a MainMenu onto a form the
designer generates the code.
this.Menu = this.mainMenu1;
Obviously the component knows that it is being added to a form and
knows what property it needs to set on it.
How would one go about implementing this? Is this an example of Custom
code generation? A custom designer? or is there a far more straight
forward way of doing this?
Thank you in advance.
Tom