How to access class instance of main form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I ve got tha start up mdi form frmMain and a customer class. I create a
public instance of Customer class. Then I want to use this instance at
another child form...

How can I refer to it?

Thank you in advance
 
* "=?Utf-8?B?RGlvbWF0YXM=?= said:
I ve got tha start up mdi form frmMain and a customer class. I create a
public instance of Customer class. Then I want to use this instance at
another child form...

Add a property of type 'Customer' to your main form, for example, and
then read this property in your MDI children:

\\\
Dim TheCustomer As Customer = DirectCast(Me.MdiParent, MainForm).Customer
///
 
Back
Top