Create user control library in standard edition

  • Thread starter Thread starter Ellis Yu
  • Start date Start date
E

Ellis Yu

Hi all,

Thanks for Jim M and Herfried K Wagner first. I'd posted a question here
about building dll output file in standand edition. It works after changing
outputtype to "library". And now I want to know how to build ocx control ?
Anyone know how to do so? Please help. Thanks

Ellis
 
Ellis Yu said:
Thanks for Jim M and Herfried K Wagner first. I'd posted a question here
about building dll output file in standand edition. It works after
changing
outputtype to "library". And now I want to know how to build ocx control ?
Anyone know how to do so? Please help. Thanks

Control libraries are basically the same as class libraries. Notice that
you cannot create OCX files using VB.NET, not even in the Professional
Edition (or "better"). Add a reference to "System.Windows.Forms.dll" (and
maybe some other DLLs you need) in your class library project and implement
your controls.
 
Ellis,
I think you have to use VB 6.0 to create an ocx. I found this answer when I
did a quick google search.

Is it possible to create an activex component using vb.net?

I need to make a component to be used by a Windows Scripting Host vb
script,
but wish to use some features available in vb.net for the component.

You can't create a COM component, but you can create a VB.NET component that
can be accessed through
a COM wrapper:

Exposing .NET Framework Components to COM
ms-help://MS.VSCC/MS.MSDNVS/cpguide/html/cpconexposingnetframeworkcomponentstocom.htm

Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 
Back
Top