VB Migration Partner

KNOWLEDGE BASE - Forms and controls


Previous | Index | Next 

[PRB] Controls in migrated VB.NET forms may be hidden by other controls

VB Migration Partner does its best to preserve the Z-Order of all the controls on a form’s surface, but there are cases when the built-in mechanism fails. When necessary, you can bring a control in front of all other controls on the form by means of a BringToFront pragma:

        '## Text1.BringToFront

If you apply this pragma to two or more controls on the same form, the last control is the one brought in front of all others. For example, this sequence of pragmas:

        '## Text1.BringToFront
        '## Check1.BringToFront
        '## List1.BringToFront

brings the List1 control in front of all controls on the form, the Check1 control in front of all controls except List1, and the Text1 control in front of all controls except List1 and Check1. VB Migration Partner supports also a SendToBack pragma, which brings a control behind other controls on the same form. Used together with the BringToFront pragma, you have full control on the relative z-order of all the controls on the form.

You shouldn’t use the BringToFront or SendToBack pragma with Shape and Line controls. If you do, the generated VB.NET code won’t compile correctly.

Previous | Index | Next 




Follow Francesco Balena on VB6 migration’s group on

LinkedIn





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.

newsletter



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