May 3, 2007

VB Interop Forms Toolkit 2.0

Today VB team has released Interop Forms Toolkit 2.0, which makes it easier than ever to upgrade VB6 applications to .NET.  This new release builds on version 1.0 by adding support for the following features:

  • Interop UserControls - These are .NET controls that can be hosted on existing VB6 Forms.  These controls look and feel just like regular ActiveX controls, but you build them the same way you would any other .NET control.
  • MDI Support - One of the big pieces of feedback we heard after the initial release was that MDI support was very important.  With the introduction of Interop UserControls, you can now extend your MDI forms with .NET content.
  • Redistributable Package - The toolkit's runtime now appears in the Prerequisites dialog in Visual Studio Setup Projects, so deploying your hybrid application is very simple.

Any public Properties, Methods, or Events defined in the UserControl are visible to VB6.  You can also use My.InteropToolbox to raise application-level events and access Global variables.

You can download the toolkit here, and if you have questions you can contact Microsoft Developer Support or post questions at the Visual Basic Interop & Upgrade forum.