Results 1 to 2 of 2

Thread: ActiveX Control Tutorial

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2001
    Posts
    1

    ActiveX Control Tutorial

    I reading through the ActiveX Tutorials part 1 found on vb-world.com.

    I created the ActiveX control and placed it into a standard vb.exe just like the tutorial said.

    But when I try to test it the control pops up in a browers instead of inside of the executable.

    Im stuck here. I beated my head on this for a while.
    What do I have to do so that I can preview my ActiveX control within a exe?

    Please Help.

  2. #2
    Member
    Join Date
    Feb 2000
    Location
    Kettering, Northants, England
    Posts
    56

    Talking

    The tutorial focuses on building an ActiveX control. An ActiveX control must run in a container and that container must be COM aware. When you run the project, it will default to an IE container. In order to run as an .exe do the following:

    File -> Add Project -> Standard .exe.

    In the Project Explorer right-click the new Project and set as start-up.

    Add code to instantiate the the object on form load or command button click or something.

    Job Done

    ps. I'm pretty sure Karl explains this in his article?!

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