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:
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:
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.