Results 1 to 3 of 3

Thread: ActiveX UserControl

  1. #1

    Thread Starter
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    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
    [email protected]
    [email protected]

  2. #2
    Hyperactive Member
    Join Date
    May 1999
    Location
    Reynosa, Mexico
    Posts
    274

    Post

    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!

  3. #3
    Hyperactive Member
    Join Date
    May 1999
    Location
    Reynosa, Mexico
    Posts
    274

    Post

    Thanks Aaron, I didn't know the Extender Object.

    Thanks!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width