VB Migration Partner

KNOWLEDGE BASE - Forms and controls

Previous | Index | Next 

[INFO] Negative values for ScaleWidth and ScaleHeight properties cause incorrect output in Microsoft Vista

A little-known VB6 feature allows you to assign negative values to ScaleWidth and ScaleHeight properties to achieve interesting graphical effects. If you assign a negative value to ScaleWidth property the graphic result is the “mirrored” version of what you’d achieve if the value were positive: an arrow pointing to the left would now point to the right, and vice versa. If you assign a negative value to the ScaleHeight property the graphic result is the “upside-down” version of what you’d achieve if the value were positive.

The bad news is that when you run the original VB6 code under Microsoft Vista you might obtain a slightly different result: the output is correctly mirrored (or rendered in upside-down fashion) yet it is translated horizontally or vertically. For the original VB6 application to work correctly you might need to test the operating system version and adjust the value of ScaleLeft or ScaleTop properties if the program is running under Microsoft Vista.

The good news is that VB Migration Partner fully supports negative values for ScaleWidth and ScaleHeight properties and behaves in exactly the same way under Microsoft Vista. This means that any workaround you’ve adopted in VB6 will work correctly in the converted VB.NET application.

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