Solved

VB6 can provide ActiveX for internet usage.  How can I do the same thing using VB.net?

Posted on 2004-08-25
4
190 Views
Last Modified: 2010-05-18
I designed lots of ActiveX using VB6 for internet HTML pages.
Now, I need to use VB.net to do the same thing.
This is what I did:
a) Created a "Windows Control Library" project, say MyActiveX
b) Put a simple program in "UserControl1.vb", say HellowWorld
c) Build the program using either "debug" or "release" .   A file MyActiveX.dll is created in "bin" sub-directory
d) Using IIS (Internet Information Service) to set virtual directory pointing to MyActiveX local directory
==================================================================
e) Created a "ASP.net Web Application" project
f) Add a HTML page
g) Add <OBJECT id="MyActiveX" classid="http://localhost/MyActiveX/bin/MyActiveX.dll#MyActiveX.UserControl1"></OBJECT>

Well, it won't work no matter what I do.  
Please help!

0
Comment
Question by:CTIGMM
4 Comments
 
LVL 2

Accepted Solution

by:
Mehrdad_Y earned 50 total points
ID: 11900748
Hello, first I have to say that you soon must transfer your Axtive X objects for websites, to Web server control. Because Windows XP Service pack 2 security will make lots of problems for you.
Second, if you really need that, check this:
-> Right click on your project name and select Add-> New Item
-> In the list, select ActiveX control or Com Component
Any way, I have to tell you that even if you use this technique, you will not be able to use .net Framework, because, .net framework is not installed on every machine.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question