Link to home
Start Free TrialLog in
Avatar of Declan Basile
Declan BasileFlag for United States of America

asked on

Refering to an instance of a class from a form

In VB.net, there is a method of a class that opens a form in "showdialogue".  How can I reference in the code of the form (for example, the form_Load event procedure) the instance of the class that opened the form and that class object's properties?
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

you will to pass a reference of your class to your form (to the constructor normally)
ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Declan Basile

ASKER

Thank you Mike.  I needed all the code to show me how to pass a reference to a constructor.  It worked great!