Solved

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

Posted on 2004-08-25
4
187 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

705 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now