471,350 Members | 1,946 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 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 3492
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by David Adams | last post: by
5 posts views Thread by Segfahlt | last post: by
5 posts views Thread by brian.wilson4 | last post: by
2 posts views Thread by Sara | last post: by
23 posts views Thread by raylopez99 | last post: by
reply views Thread by amdrit | last post: by
reply views Thread by XIAOLAOHU | last post: by

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.