Results 1 to 3 of 3

Thread: Creating a ActiveX object at run time?.?

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Posts
    7
    I'm trying to create an ActiveX object that I created using VB, in another project on the fly. I like to Create the object and show it in a form. The thing is, I need to do it late binding, like:

    dim obj as object

    set obj = CreateObject("myObj.TestControl")

    ' Then show it some how

    How do I do this?

  2. #2
    Lively Member
    Join Date
    Jul 2000
    Posts
    94
    did you try
    obj.move 0, 0
    obj.visible = true

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Posts
    7
    I tryed that, but I keep getting an error saying "Object doesn't support this property or method"

    FYI: I created a test UserControl that just has a shape on it, a circle, and made the OCX. It's a very simple Control. Is there something I have to do to the control to make it have the general properties? I have created my own proerties in this control, and the do get called.

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