VB Migration Partner

KNOWLEDGE BASE - Forms and controls

Previous | Index | Next 

[INFO] All ListBox and Frame controls in an array must have same style

Under VB6, a simple ListBox control can display checkboxes by simply setting its Style property to 1-Checked. Likewise, a VB6 Frame control can display or hide its border by assigning 1 or 0 to its BorderStyle property.

Under .NET, however, changing the style of a ListBox or Frame control isn’t possible: a VB6 listbox with checkboxes must be converted into a CheckedListBox control under .NET. Similarly, a VB6 Frame control with border is converted into a GroupBox control, whereas a borderless Frame control becomes a Panel control under .NET.

VB Migration Partner takes care of these transformations and you don’t usually have to worry about them, except for two details:

  1. The BorderStyle property of a Frame control is readonly at runtime under .NET.
  2. All the elements in an array of Frame or ListBox controls must have the same style – that is, must have the same value for the BorderStyle and Style properties, respectively.

When migrating an array of Frame or ListBox controls, VB Migration Partner changes the value of the BorderStyle and Style properties, respectively, so that they match the property value found in the first element in the array. No warning is issued.

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