General information
Title:
Saving controls as object classes
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only