Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
try this... the approach has worked great for me in many similar types of situations...
create a class based on a container. In the container, put a label and a command button. The click event of the button can always refer to This.Parent.YourLabel.Caption to get the component it needs... You could also put custom properties on the container as holding place in case you needed something else... Then, when you dynamically add the controls, they can have their properties set. If you have more than one instance of this control on a form, they will refer to their respective instance.
If you need more help/clarity, let me know...
Précédent
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