PDA

Click to See Complete Forum and Search --> : ActiveX UserControl


Aaron Young
Dec 13th, 1999, 01:38 AM
The Parent of the User Control will always be the Form it's on, regardless of wether it's ina container or not.

To get a reference to the Container, you need to go round about using the Extender Object, eg.

Msgbox "The Containers TabIndex Is: " & UserControl.Extender.Container.TabIndex

------------------
Aaron Young
Analyst Programmer
aarony@redwingsoftware.com
adyoung@win.bright.net

Tonatiuh
Dec 13th, 1999, 11:00 AM
How can I know from within my ActiveX UserControl, the TabIndex that is has in the container it is.

I trayed this:

UserControl.Parent.TabIndex
UserControl.Ambient.TabIndex

And nothing.

Any idea will be deeply appreciated.

Thanks!

Tonatiuh
Dec 13th, 1999, 08:24 PM
Thanks Aaron, I didn't know the Extender Object.

Thanks!