VB Migration Partner

KNOWLEDGE BASE - Forms and controls

Previous | Index | Next 

[INFO] Minor differences between VB6 and VB.NET ImageList controls

VB Migration Partner’s support library hides most of the differences between the VB6 and the .NET versions of the ImageList control, but not all of them. In most cases the remaining differences should have no impact on migrated programs. Here’s their complete list:

  • Under VB6, the Width and Height properties of the bitmap returned by the ListImage.Picture property are returned in HiMetric units, whereas under VB.NET these values are returned as pixels.
  • Under VB6, the Width and Height properties of the bitmap returned by the ListImage.Picture property reflect the original size of the bitmap; under VB.NET these properties reflect the original size of the bitmap only if the bitmap was added dynamically at runtime; if the bitmap was added at design time, these properties return the dimensions of the resized bitmap.
  • The VB6 ImageList control can contain images of different size (unless the ImageList is bound to a common control) and there is no limit to the image size; the .NET control only accepts images of same size and can’t contain images wider or higher than 256 pixels.
  • The ListImage.Draw method of the VB.NET control doesn’t support the imlSelected and imlFocus styles.
  • In an undocumented VB6 behavior, the ListImage.ExtractIcon method can affect the size of the bitmap returned by the ListImage.Picture property. This behavior hasn’t been implemented in VB.NET.
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