473,320 Members | 1,916 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

ActiveX component

Hi!

I have a quick question regarding C#.Net, since I am a complete newbe in
this area!

I was wondering if it is possible in some way, to develop an ActiveX control
in .Net which can be deployed in an old-fashioned Visual Basic 6 project.

The reason why I started to wonder, is because I found a tutorial on the Web
in which it is explained, how one can create a Windows control project in
Visual Studio .NET, expose an interface to the COM world, and then use this
control in a Web page! However I don't know if this can be done in relation
to Visual Basic 6 as well!

Thank you

- Morten


Nov 15 '05 #1
2 1221
Morten,

There is no official support for hosting .NET controls in an ActiveX
container outside of Internet Explorer. However, Chris Sells has figured
out an EXTREMELY unsupported method to do this. Check out the article
titled "Hosting Windows Forms Controls in COM Control Containers", located
at (watch for line wrap):

http://www.ondotnet.com/pub/a/dotnet...mshosting.html

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Morten" <mo*********@vip.cybercity.dk> wrote in message
news:br**********@news.cybercity.dk...
Hi!

I have a quick question regarding C#.Net, since I am a complete newbe in
this area!

I was wondering if it is possible in some way, to develop an ActiveX control in .Net which can be deployed in an old-fashioned Visual Basic 6 project.

The reason why I started to wonder, is because I found a tutorial on the Web in which it is explained, how one can create a Windows control project in
Visual Studio .NET, expose an interface to the COM world, and then use this control in a Web page! However I don't know if this can be done in relation to Visual Basic 6 as well!

Thank you

- Morten

Nov 15 '05 #2
Hi Nicholas!

Thank you for your response!

- Morten

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:%2****************@tk2msftngp13.phx.gbl...
Morten,

There is no official support for hosting .NET controls in an ActiveX
container outside of Internet Explorer. However, Chris Sells has figured
out an EXTREMELY unsupported method to do this. Check out the article
titled "Hosting Windows Forms Controls in COM Control Containers", located
at (watch for line wrap):

http://www.ondotnet.com/pub/a/dotnet...mshosting.html

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Morten" <mo*********@vip.cybercity.dk> wrote in message
news:br**********@news.cybercity.dk...
Hi!

I have a quick question regarding C#.Net, since I am a complete newbe in
this area!

I was wondering if it is possible in some way, to develop an ActiveX

control
in .Net which can be deployed in an old-fashioned Visual Basic 6 project.
The reason why I started to wonder, is because I found a tutorial on the

Web
in which it is explained, how one can create a Windows control project in Visual Studio .NET, expose an interface to the COM world, and then use

this
control in a Web page! However I don't know if this can be done in

relation
to Visual Basic 6 as well!

Thank you

- Morten


Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mattt | last post by:
Hi, I've run into a rather odd problem. get Methods seem to return values from the wrong methods! For example, let's pretend my activex control stores values about a person. getName would return...
7
by: Newbie | last post by:
Hi all, I have some activeX code that I use to get the local computer name. (I don't think this is possible using ASP from my research). The rest of my code is ASP. I'd like to know how to...
5
by: David | last post by:
Hi everyone, I have a ActiveX EXE component written in VB6. This ActiveX EXE exposes various public methods that can be called by several other independent Windows EXE applications (also written...
0
by: Ted | last post by:
I'm using a 3rd party ActiveX control which has it's own constructor and two very methods (which ultimately sends out messages on the server's USB or serial port). I am trying to run this ActiveX...
2
by: Berata | last post by:
Hello all, in VB6 we were able to create ActiveX-DLL's (In Process Components) and ActiveX-Exe's (Out of Process Components). We habe build up an application that exists of an main module...
1
by: Craig | last post by:
I am having problems getting an ActiveX DLL written in VB6 to call a method in a C# class library component. My C# DLL is called CSharpProject.dll and contains a public class called CSharpClass....
1
by: John Gabriel | last post by:
I have set up a website and am testing ASPs. I have created a very simple ActiveX component with two interfaces: AboutBox() - displays About details calcpi() - returns 3.14159 Here is my...
3
by: Jeffery Franzen | last post by:
Anyone know where the documentation is regarding Activex controls in asp web forms? I'm using VS.NET 2002 enterprise and am trying to use Activex controls in vb.net web form app. I do the add...
4
by: Wilfried Mestdagh | last post by:
Hi, I have a C# application (VS2005) with Microsoft Mappoint activeX control on a form. At a certain moment I want to create a second one temporary in code. This seems not to work, when I try to...
6
by: hufaunder | last post by:
I have an ActiveX component that I want to use in a library that I am writing. As a first test I used the ActiveX component in a windows form application. Adding the component created: Ax.dll...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.