By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,694 Members | 1,332 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,694 IT Pros & Developers. It's quick & easy.

Relating an object to a window.

P: n/a
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!

--
- Mitchell
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
"Mitchell Vincent" <mv******@newsgroup.nospam> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
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!

--
- Mitchell

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.