C # winforms host in VB6 applications

I have a VB 6 application and we are starting to port it to C #. We finished one of the screens and wanted to see if there is an incremental way of placing winform in VB in order to make existing users get used to new screens. This is a migration strategy.

Any thoughts.

+5
source share
3 answers

Have you looked at that? Direct product link here

+3
source

The Interop Forms Toolkit allows you to create .NET forms and user controls that you can use in VB 6.0 applications. This allows you to port VB 6.0 applications to .NET over time (the form or part of the form at a time). However, the toolkit is based on the build functions of Microsoft.VisualBasic and the VB.NET compiler, so it does not work with C #.

There are a couple of articles / examples on CodeProject.com that discuss the toolkit and how to use it with C #.

Interop Forms Toolkit 2.0 Tutorial

VB6 Tool - C # Interop Form Toolkit

Beth Massey has several articles and webcasts about using the Toolkit, which you can use for reference. Check out her blog for links to resources.

+7
source

You do not need any third-party tools that go beyond what comes with Visual Studio if you just want your VB6 program to invoke .NET Winform mapping.

The approach we used here is to introduce the C # wrapper class for VB6 by providing it with a COM interface. This class has several methods that can be called from VB6. They, in turn, instantiate and then show Winform. It works well.

0
source

All Articles