Solved

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

Posted on 2004-08-25
4
192 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
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…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

617 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