Results 1 to 4 of 4

Thread: Extend ActiveX control

  1. #1

    Thread Starter
    Addicted Member MrPresident2k's Avatar
    Join Date
    May 2002
    Location
    INDIA
    Posts
    167

    Thumbs down Extend ActiveX control

    Hi,
    Thanks in advance for ur help.

    How do I Extend ActiveX control in a Form and use its Porperties and methods.

    If I use

    Dim a as UserControl
    a.MethodName

    It is giving an error
    Object Variable or With Block Variable not set.
    How to overcome this?

  2. #2
    Frenzied Member Jim Davis's Avatar
    Join Date
    Mar 2001
    Location
    Mars base one Username: Jim Davis Password: yCrm33
    Posts
    1,284
    Try with "NEW"


    VB Code:
    1. Private MyObj as UserControl
    2.  
    3. Sub BlaBla()
    4. Set MyObj = New UserControl
    5.  
    6. MyObj.Say "moooo"
    7.  
    8. End Sub

    hope this helps

    Jim

  3. #3

    Thread Starter
    Addicted Member MrPresident2k's Avatar
    Join Date
    May 2002
    Location
    INDIA
    Posts
    167

    No It isn't working

    Hi,

    Even that doesn't work, and it says
    Invalid use of new keyword

    Thanks

  4. #4

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