G
Guillaume BRAUX
Hello,
What I want to do is to add a userControl to a form class witch is a
different class from the one the button is generated.
For example, I want to instanciate a label in "class1" and add it ("show
it") on a WinForm situated in "class2" (without having to add code to class2
!)
The problem is that I need to instanciate "class2" from "class1" to be able
to do a class2.controls.add(myLabel) in class1..
Instaciating class2 means that a new form will be created, but i want my
control to be added to the current running form.
Thanks for your help,
Guill
What I want to do is to add a userControl to a form class witch is a
different class from the one the button is generated.
For example, I want to instanciate a label in "class1" and add it ("show
it") on a WinForm situated in "class2" (without having to add code to class2
!)
The problem is that I need to instanciate "class2" from "class1" to be able
to do a class2.controls.add(myLabel) in class1..
Instaciating class2 means that a new form will be created, but i want my
control to be added to the current running form.
Thanks for your help,
Guill