Run time Controls and form generation - Programmers Heaven

Howdy, Stranger!

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


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


Sign In or Register to comment.