DLL control + VB6 + VB.NET

  • Thread starter Thread starter Marty
  • Start date Start date
M

Marty

Hi,

For peoples who know VB6 and VB.NET.

Is it possible to create a Windows Control Library in .NET and use it in
a VB6 project?

I did an attempt but VB6 don't want to create a project reference to my
control DLL.

Thanks in advance.

Marty
 
¤ Hi,
¤
¤ For peoples who know VB6 and VB.NET.
¤
¤ Is it possible to create a Windows Control Library in .NET and use it in
¤ a VB6 project?
¤
¤ I did an attempt but VB6 don't want to create a project reference to my
¤ control DLL.
¤

You cannot create a COM control with a graphical user interface (OCX) in VB.NET if that is what you
are asking.

Otherwise, you can create a .NET DLL for COM interop.

http://msdn.microsoft.com/library/d.../cpconexposingnetframeworkcomponentstocom.asp
http://support.microsoft.com/default.aspx?scid=kb;en-us;817248


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 
I'm not sure if we think to the same thing. In VB.NET I created a
Windows Control Library (DLL) project, and I was able in insert a
control button (just for testing) on the GUI.

When builded, it created a DLL file. This DLL, is it possible to insert
it in a VB6 project?

Thanks

Marty
 
¤ I'm not sure if we think to the same thing. In VB.NET I created a
¤ Windows Control Library (DLL) project, and I was able in insert a
¤ control button (just for testing) on the GUI.
¤
¤ When builded, it created a DLL file. This DLL, is it possible to insert
¤ it in a VB6 project?
¤

No, a .NET Windows Control Library is not supported by VB 6.0.


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 
..Net gives there controls .dll not .ocx but the control.dll Is for the .net
framework only its not com
vb.net can use com controls or .net controls but vb6 only uses com
 
Back
Top