VB Migration Partner


Previous | Index | Next 

[HOWTO] Modify migrated projects to use CodeArchitects.VBPowerPack.dll

Starting with version 1.34, VB Migration Partner can migrate the Printer, CommonDialog, Line and Shape classes by means of the new CodeArchitects.VBPowerPack.dll library, which has the advantage of not depending on any COM DLL.

This article explains how you can modify projects that are already migrated to leverage the new DLL and therefore avoid (or at least, reduce) dependencies from COM. Basically, this process has the following steps.

  1. Add a reference to the CodeArchitects.VBPowerPack.dll and Microsoft.VisualBasic.PowerPacks.Vs.dll files.
  2. add a project-level import for the CodeArchitects.VBPowerPack namespace.
  3. modify the VisualBasic6_Support.vb file (located in the My Project and hidden by default) so that all reference to VB6Printer and VB6Printers classes is changed into VB6PrinterPP and VB6PrintersPP, respectively.
  4. check the Error List window and look whether your code uses one or more members that have been obsoleted. In this case, your code is guaranteed not to work as it did before the changes.
  5. Carefully read this article to check whether other incompatibilities or important differences can affect the way your code behaves.
Previous | Index | Next 

Follow Francesco Balena on VB6 migration’s group on


Read Microsoft Corp’s official case study of a VB6 conversion using VB Migration Partner.

Code Architects and its partners offers remote and onsite migration services.

More details

Subscribe to our free newsletter for useful VB6 migration tips and techniques.


To learn more about your VB6 applications, run VB6 Analyzer on your source code and send us the generated text file. You will receive a detailed report about your VB6 applications and how VB Migration Partner can help you to quickly and effectively migrate it to .NET.

Get free advice

A fully-working, time-limited Trial Edition of VB Migration Partner allows you to test it against your actual code

Get the Trial

The price of VB Migration Partner depends on the size of the VB6 application, the type of license, and other factors

Request a quote

Migrating a VB6 application in 10 easy steps

Comparing VB Migration Partner with Upgrade Wizard

Migration tools: Feature Comparison Table

All whitepapers