Information générale
Titre:
Passing Form Object Reference as Parameter
How can I pass an object reference to form1, from form1 to a model form2 so I can make callbacks to form1 in order to set properties in the calling form?
Form1 one is derived from a parent class Baseform that contains the properties that are subsequently set in form1 and changed in form2 via a call back.
Form2 is a generic form that will be called from many forms that are derived from Baseform so I can’t be specific on the type for the parameter in the constructor of Form2.
Thanks in advance
Terry Carroll
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement