|
-
Dec 3rd, 2001, 01:09 PM
#1
Thread Starter
New Member
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.
-
Dec 14th, 2001, 04:06 AM
#2
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|