Results 1 to 2 of 2

Thread: control collection in host Application

  1. #1

    Thread Starter
    Fanatic Member vishalmarya's Avatar
    Join Date
    Feb 2001
    Location
    New Delhi , INDIA
    Posts
    858

    control collection in host Application

    collection of controls of the parent form(host Application ) is available in usercontrol by :

    usercontrol.parent.controls


    How can i get this collection property pages ?


    Thanks
    Last edited by vishalmarya; Dec 1st, 2002 at 03:12 AM.

  2. #2

    Thread Starter
    Fanatic Member vishalmarya's Avatar
    Join Date
    Feb 2001
    Location
    New Delhi , INDIA
    Posts
    858

    Lightbulb

    At last , i figured it out .
    ( if someone is still interested )

    By making a friend function in usercontrol and invoking it from

    property Pages.

    function :

    Friend Function container() As Object
    Set container = Extender.Parent
    End Function


    Statement in property pages

    Dim mcntr As usercontrol1
    dim cont as object
    Set mcntr = SelectedControls(0)
    set cont=mcntr.container

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