Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Saving controls as object classes
Message
De
27/08/1996 18:32:43
Jon Sharp
Leura Technologies Pty. Ltd
Sydney, Australie
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Titre:
Saving controls as object classes
Divers
Thread ID:
00006787
Message ID:
00006787
Vues:
95
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform