473,321 Members | 1,667 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,321 software developers and data experts.

Making C# User Controls Visible to Visual Basic 6.0 Applications

Hi there,

I want to know if there's any way to put an user control developed in
C# into the toolbox of our old friend Visual Basic 6.0. The reason for
that is to start to migrate the code to C# step by step and keep using
legacy interfaces. I've just achieved to include the library as a DLL
but I'm not able to visualize the component into the toolbox.

I've added the class in runtime to a form, and I can see the control,
but still I don't have access to the methods or properties. On the
other side, I've created an object with the name of the class and I've
been able to access all the proerties and methods ( and even debugging
with .NET ) but I hadn't been able to show it in the form.

Any help, Any Hint?

Thanks in Advance.

Miquel Taberner.
Nov 15 '05 #1
1 3983
Miquel,

.NET doesn't officially support exporting controls as ActiveX controls.
It was in one of the early betas for the original release, but was then
dropped. However, Chris Sells (I believe) found a way to do it with some
settings and interface implementations. You can try checking out his
website http://www.sellsbrothers.com.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"Miquel Taberner" <mt*******@slash-solutions.com> wrote in message
news:d3**************************@posting.google.c om...
Hi there,

I want to know if there's any way to put an user control developed in
C# into the toolbox of our old friend Visual Basic 6.0. The reason for
that is to start to migrate the code to C# step by step and keep using
legacy interfaces. I've just achieved to include the library as a DLL
but I'm not able to visualize the component into the toolbox.

I've added the class in runtime to a form, and I can see the control,
but still I don't have access to the methods or properties. On the
other side, I've created an object with the name of the class and I've
been able to access all the proerties and methods ( and even debugging
with .NET ) but I hadn't been able to show it in the form.

Any help, Any Hint?

Thanks in Advance.

Miquel Taberner.

Nov 15 '05 #2

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

Similar topics

2
by: migue | last post by:
way below newbie level: I know nothing about .Net. Have a VB6 client-server application (business app, inventory, purchasing, invoicing, etc.) and am considering converting it to VB.Net at a...
0
by: Jeff M | last post by:
For my application an activeX refers to "program displayed within Internet Explorer" After looking over the docs for VB.NET it looks impossible. ---START--- USERCONTROL CHANGES IN VISUAL...
8
by: Jim M | last post by:
I created an addin using VB.Net. I added a windows form to the addin, but I can not figure out how to have the form open up in the addin. Is this possible. I only see a file frmMain.vb in the...
5
by: john | last post by:
I searched http://www.sellsbrothers.com. and could not find anything about this subject. How do I make C# User Controls Visible to Visual Basic 6.0 Applications? Thanks, John
7
by: Chuck | last post by:
I am working in C# 2003. Can anyone tell me how to make a user control transparent. VS help doesn't help. What I want to do is draw on a user control during design time and then place the...
6
by: Tom Rowton | last post by:
This one has me a bit confused and I'm not finding what I need in the MSDN or by searching these forums, so here goes... I have a rather large, complex code-in-page WebForm (don't ask) and a...
2
by: Scott | last post by:
I'm using a master page (mp_TableMaint.aspx) with one Content area (ID: Content1). Content1 contains several usercontrols, which are hidden. The goal is to show the correct control based on the...
0
by: John Olbert | last post by:
I have been given the task of finding ways to use legacy ActiveX controls in C# applications under Vs2005/Net2.0. At this time I am trying to use a number of ActiveX controls built with Visual...
2
by: jfolland | last post by:
I am trying to add a basic user control to a web site; coming from visual studio 2003 this was extremely easy. I would just add the user control and then add the controls that I want on that...
11
by: Rafe | last post by:
Hi, I'm working within an application (making a lot of wrappers), but the application is not case sensitive. For example, Typing obj.name, obj.Name, or even object.naMe is all fine (as far as...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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...
1
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: 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
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.