Connecting Tech Pros Worldwide Forums | Help | Site Map

Using a User's Control of VB.NET in a Form of VB6

damianmatiasmax
Guest
 
Posts: n/a
#1: Apr 26 '06
Hola, I am trying to generate a UserControl in VB.NET to be able to use
it in VB6. Therefore:
1- I generate the Wrapper and the object COM
2- Import it from VB6 and I can use his methods, properties and events.
To the object I can use it, but it(he,she) cannot apply the User's
Control inside the form of VB6. The function for this serious:
Set objComNet.container = FormVB6
But the objComNet is of "read only" and therefore it is not possible to
use it. In Reality the property skip of .NET is different from the
property skip of VB6.
Definitively, I am trying to be able to use a User's Control of VB.NET
in a Form of VB6, please if someone has some idea one would be grateful
for her very much.
Good, Thank you very much and good luck


Sam
Guest
 
Posts: n/a
#2: Apr 26 '06

re: Using a User's Control of VB.NET in a Form of VB6


Hola,
Look at the article below:
http://support.microsoft.com/default...b;en-us;817248

Hope it helps.

Herfried K. Wagner [MVP]
Guest
 
Posts: n/a
#3: Apr 26 '06

re: Using a User's Control of VB.NET in a Form of VB6


"damianmatiasmax" <damianmatiasmax@yahoo.com.ar> schrieb:[color=blue]
> Hola, I am trying to generate a UserControl in VB.NET to be able to use
> it in VB6.[/color]

You can use VB.NET to create controls that can be used in MFC and Internet
Explorer, however, VB6 as host environment ist not supported:

ActiveX control containers that support .NET controls
<URL:http://support.microsoft.com/?scid=kb;EN-US;311334>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Closed Thread