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 on a form.
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? Each one I place on a form gets an index..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 when i call from within the ctl itself.
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 on a form.
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? Each one I place on a form gets an index..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 when i call from within the ctl itself.
What am I missing?