Using Business Objects in Windows Form

As mentioned in Overview of MM .NET, rather than placing your business logic in the user interface, you should place it in methods of business objects. Normally you should have at least two projects in your solution. One that contains your user interface classes and another project that contains your business objects. For example:

You can add new business objects to the business object project, creating properties, events, and methods that can be accessed from the user interface. Normally, the best way to do this is to generate them using the MM .NET Business Layer Generator, although you can also manually create them. Whenever you want to reference a business object from a Windows Form, remember to add a using or Imports statement for the business object's namespace.

For information on creating business objects, see Using the MM .NET Business Layer Generator.

See also:
Business Object Class Hierarchy | busiData Access Overview | Registering Business Objects with a Windows Form | Getting References to Registered Business Objects


© (c) 2026 Oak Leaf Enterprises, Inc., 1996-2026 • Updated: 07/28/18
Comment or report problem with topic