Relating an object to a window.

  • Thread starter Thread starter Mitchell Vincent
  • Start date Start date
M

Mitchell Vincent

I'm writing some business software, so I have a customer object that
holds customer data and all the logic to deal with that customer. The
problem is one of concept - I don't know how to tie the customer object
to a specific window. Since this app is MDI, it is possible for the user
to have more than one customer open at a time.

What is the "correct" way to tie a data/logic object to a window?

I realize that is an open ended question but I'm still trying to wrap my
head around Visual Studio.NET and this MDI stuff!

Thanks!
 
On approach would be do declare a field (data member variable) in your form
code, typed to your Customer class. This would allow you to assign a
customer object to the variable and do things like bind customer data to
controls on that form.

Dim _FormCustomer As Customer
 
Back
Top