General information
Category:
Coding, syntax & commands
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...
Previous
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