473,320 Members | 2,088 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.

WinForms User Control In VB6 App

Hi All,

I have developed a set of User Controls for an application that we would now
like to backfill into a VB6 application. I believe that it is possible to
create an ActiveX control out of the User Control and embed it in a
WebBrowser, but I haven't found any good examples of this. Could anybody
point me to one?

Alternatively, if anybody has any better solutions, I'd be very happy to
hear them.

Thanks,
PAGates
Dec 7 '05 #1
2 3566
PAGates,

Unfortunately, there is no supported way of exposing a .NET control as
an Active X control. You can embed a .NET control into IE (or a webbrowser
app), but doing that just to expose it to VB is a HUGE waste of resources.

There is an unsupported way of exposing .NET controls as ActiveX
controls, but I wouldnt base code released into production on it.

You are probably better off migrating the other parts of your VB6 app to
..NET.

Hope this helps.

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

"pagates" <pa*****@discussions.microsoft.com> wrote in message
news:70**********************************@microsof t.com...
Hi All,

I have developed a set of User Controls for an application that we would
now
like to backfill into a VB6 application. I believe that it is possible to
create an ActiveX control out of the User Control and embed it in a
WebBrowser, but I haven't found any good examples of this. Could anybody
point me to one?

Alternatively, if anybody has any better solutions, I'd be very happy to
hear them.

Thanks,
PAGates

Dec 7 '05 #2
Hi Nicholas,

Unfortunately, my pleas to upgrade the existing stuff fell on deaf ears, so
we must somehow integrate the control into the VB6 stuff. Believe me, I
tried!

I understand that it is a waste, but if embedding it is the "only" way
(unless you can point me to the unsupported way), then that's what I will be
forced to do.

The risk is low - the control is basically a browsing tool on a client to
get tags from a database. It should not interfere with any "real" production
on the system.

Thanks,
PAGates

"Nicholas Paldino [.NET/C# MVP]" wrote:
PAGates,

Unfortunately, there is no supported way of exposing a .NET control as
an Active X control. You can embed a .NET control into IE (or a webbrowser
app), but doing that just to expose it to VB is a HUGE waste of resources.

There is an unsupported way of exposing .NET controls as ActiveX
controls, but I wouldnt base code released into production on it.

You are probably better off migrating the other parts of your VB6 app to
..NET.

Hope this helps.

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

"pagates" <pa*****@discussions.microsoft.com> wrote in message
news:70**********************************@microsof t.com...
Hi All,

I have developed a set of User Controls for an application that we would
now
like to backfill into a VB6 application. I believe that it is possible to
create an ActiveX control out of the User Control and embed it in a
WebBrowser, but I haven't found any good examples of this. Could anybody
point me to one?

Alternatively, if anybody has any better solutions, I'd be very happy to
hear them.

Thanks,
PAGates


Dec 7 '05 #3

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

Similar topics

2
by: David Adams | last post by:
Hi, I am afraid I am asking a very basic question, or just something that is not possible. I have a WinForm app that contains a Form (Form A), and then 20-30 UserControls/WinForms that are...
10
by: BBFrost | last post by:
We just recently moved one of our major c# apps from VS Net 2002 to VS Net 2003. At first things were looking ok, now problems are starting to appear. So far ... (1) ...
5
by: Segfahlt | last post by:
I need a little help here please. I have 2 win forms user controls in 2 different projects that I'm hosting in 2 different virtual directories. The controls have been test and operate okay in...
2
by: deko | last post by:
When to use a privileged user thread rather than a windows service? That's the question raised in a previous post . It was suggested that if the service needs to interact with a WinForms app...
5
by: brian.wilson4 | last post by:
Our group is currently comparing winforms vs webforms.....app is Corp LAN based - we have control of desktops.....Below is pros and cons list we have come up with - if anything strikes you as...
0
by: jonathan.beckett | last post by:
I have been working on a client project recently that is using winforms ..NET user controls within web pages in Internet Explorer, and need to find out how to make the user control communicate back...
2
by: Sara | last post by:
Hello there, Iam creating a user control with 2 buttons, And i have a public static variable i'll be changing the value of the variable in the button click events. When i consume the user...
2
by: kumarpappu | last post by:
hello - I am newbie in winforms and c#. i have a mainform.cs and it has 2 user controls - leftView and rightView. In leftView.cs i am instantiating a new clientLeftView(another user control)...
23
by: raylopez99 | last post by:
Here I am learning WinForms and two months into it I learn there's a WPF API that is coming out. Is this WPF out yet, and is it a threat to WinForms, in the sense that all the library routines I...
0
by: amdrit | last post by:
Hello Everyone, I am having a hard time understanding how to implement MVP in winforms with custom controls. I am attempting to make use of TDD using nUnit for my tests. Do any of you have a...
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
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
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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: 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.