Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2004-08-25
4
Medium Priority
?
199 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
1 Comment
 
LVL 2

Accepted Solution

by:
Mehrdad_Y earned 200 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Integration Management Part 2
Suggested Courses

772 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