E
Edgardo Rossetto
Hi, I'm having this little issue which i dont know how to fix properly.
I have a button that instanciates a form, then it shows it normally (not
modal), this opened form is owned by the main form, the problem is that
I dont know how to check if it was previously openeded (the owned form).
So i made a private bool field in the main form indicating weather the
owned form is opened or not, so far thats good.
My question is if my owned form is implicitly aware of the instance of
the owner form, that is, if I can change public/protected properties
from the owned form, of if I need to pass by ref the instance of the
owner to the owned form constructor.
You see, I dont want to create unnecessary references if possible.
Thanks,
Edgardo
I have a button that instanciates a form, then it shows it normally (not
modal), this opened form is owned by the main form, the problem is that
I dont know how to check if it was previously openeded (the owned form).
So i made a private bool field in the main form indicating weather the
owned form is opened or not, so far thats good.
My question is if my owned form is implicitly aware of the instance of
the owner form, that is, if I can change public/protected properties
from the owned form, of if I need to pass by ref the instance of the
owner to the owned form constructor.
You see, I dont want to create unnecessary references if possible.
Thanks,
Edgardo