Information générale
Catégorie:
Programmation Orientée Object
Titre:
Communications between controls
I have created a phone # class that I can drop on a form. It functions like the phone numbers on the Outlook Contacts form w/ dropdown for type of # and textbox for #. It has a requery method that updates the controls in the composite class. I want to be able to update the controls (there are usually more than one on a form - home, work, fax, etc.) automatically from one call. I have experimented with an array property and update method on our form class. The phone objects register themselves with the form and the form method calls the requery method of each object.
What is the best OOP way to do this? I've thought about a separate object to handle this, but saw no advantage from the form method.
TIA
John
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement