Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Saving controls as object classes
Message
From
27/08/1996 18:32:43
Jon Sharp
Leura Technologies Pty. Ltd
Sydney, Australia
 
 
To
All
General information
Forum:
Visual Basic
Category:
Other
Title:
Saving controls as object classes
Miscellaneous
Thread ID:
00006787
Message ID:
00006787
Views:
90
I am new to VB and have what probably amounts to a simpleton's question:

How can I put my own set of VB controls into a class so that it can be re-used in multiple forms? To be specific, we want to develop a sales application that needs a customer object with a few text controls (for name, address, etc.), as well as a few combo boxes (for states, sales categories, etc.). This object will be re-used in over a dozen forms that refer to the customer record.

If I use the forms designer to design say a frame with the above controls bound to my customer record, how do I save this set of controls as an object? I have read the section on creating OLE servers in the MS Profressional Features book that comes with VB but can't see the wood for the trees. Do I save this set of controls as an OLE server? How? In-Processs or Out-Of-Process - do they have any relevance? Also, if I develop a number of further customer / sales objects for my application, can I save all these objects in some kind of a class library?

Thanks,
Jon Sharp
Next
Reply
Map
View

Click here to load this message in the networking platform