Group: Forum Members
Posts: 2K,
Visits: 6.6K
|
There are two things I've done when managing lots of BOs with there associated controls on a form:
1. use the panelmanager or a tab and then when a page activates, load the data that page needs. Lots of the time, each page is using a single BO, so it's pretty effecient. This is generally a single private function with a select case statement on the page's name, called from the page activated event.
2. externally define pages (I've done panelmanagerpages or wizardpages so far) that have the UI and the BO one them. They are kind of sub forms. I then expose a method like LoadData that loads the BO. I either use parameters to the method or properties of the page (or both) to gather information needed to load the BO. I then use call the LoadData method when the page is activated.
I'm sure there are lots of instances when other technique will work better, but I have several forms that have 20+ BOs (don't forget list/combos use them too) and they work well. My app is also used over a VPN, so I'm always looking to increase speed, so I'll be interested in other's suggestions/ideas.
|