DLL control + VB6 + VB.NET

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
 
P

Paul Clement

¤ 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)
 
M

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?

Thanks

Marty
 
P

Paul Clement

¤ 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)
 
J

Jim Burns

..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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top