Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Run time Controls and form generation

Arv212Arv212 Posts: 1Member
Hi People,
This is my maiden question in this forum.
I am creating dynamic forms(How many? Variable...) and then adding dynamic control(..Command button) on each dynamic form using following code

Set cmdZoom = d_form(i).Controls.Add("VB.CommandButton", "cmdZoom")
Now I want to know which command button is clicked and in which form by handling click event.But thing is that i get event of lastly added command button only.I want to handle click event of any button like control array.But this is not control array coz each control is on different forms.So,my Question is that how do I know which button is clicked and on which form.
Info:--- Each dynamic command button has same name.I am using VB6

Thanks.

Sign In or Register to comment.