-
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.
-
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?!