I am a newbie trying to learn the basics of active x. Heres what I created
1 button (active x control),5 command buttons in the control
once I place the control on a form I simply want to get back a small array with 2 things.
1- the index of the command button I clicked in the control (which I can get)
2- The index number of the INSTANCE of the control.
This is where I m stuck!!!!!!!!!!!!!!!
ex: callbutton (thecontrolsindex#),(Theindexofthecommandbutton)
How do I get the index of the usercontrol on a form from within the control itself?
I can count them with .count, and label them by calling cmdbtn(0).caption, from the form, but I cannot seem to get the index of the instance on the form.
What am I missing?
1 button (active x control),5 command buttons in the control
once I place the control on a form I simply want to get back a small array with 2 things.
1- the index of the command button I clicked in the control (which I can get)
2- The index number of the INSTANCE of the control.
This is where I m stuck!!!!!!!!!!!!!!!
ex: callbutton (thecontrolsindex#),(Theindexofthecommandbutton)
How do I get the index of the usercontrol on a form from within the control itself?
I can count them with .count, and label them by calling cmdbtn(0).caption, from the form, but I cannot seem to get the index of the instance on the form.
What am I missing?