Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Activex index counting?

Status
Not open for further replies.

STtech

MIS
Joined
Oct 30, 2003
Messages
3
Location
US
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top