Results 1 to 5 of 5

Thread: [RESOLVED] UserControl

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2006
    Location
    Jerusalem
    Posts
    39

    Resolved [RESOLVED] UserControl

    hello,

    how can I access the parent form controls in a UserControl code..
    i created a new usercontrol called UC1 .. i tried

    uc1.
    me.

    not working..

    thx in advance..

  2. #2
    Lively Member
    Join Date
    Jun 2006
    Location
    Chennai, India
    Posts
    87

    Re: UserControl

    Use Me.Parent.(ControlName)

    It will work. But not in UserControl_initialize. Use some where else after initialize.

  3. #3

    Thread Starter
    Member
    Join Date
    Nov 2006
    Location
    Jerusalem
    Posts
    39

    Re: UserControl

    its not working.. i have a button in my UserControl..
    so in its click event i tried "me" and i tried "uc1"
    not working..

    thx anyway..

  4. #4
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    Re: UserControl

    Instead of Me use UserControl :
    VB Code:
    1. UserControl.Parent.[i]whatever[/i]

  5. #5

    Thread Starter
    Member
    Join Date
    Nov 2006
    Location
    Jerusalem
    Posts
    39

    Re: UserControl

    thank you much..

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