(emulates VB6’s Move event logic):
' Instead of: Me.Button1.Anchor = AnchorStyles.Top Or AnchorStyles.Right ' Use the VB6-compatible approach: Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load ' This tells the migration runtime to emulate VB6's resize logic Me.VB6Anchor(Me.Button1) = "TopRight" Me.VB6Anchor(Me.TextBox1) = "TopLeftWidth" Me.VB6Anchor(Me.OKButton) = "BottomRight" End Sub code architects vb migration partner
By a Code Architects Consultant
The standard .NET Anchor property behaves differently. Instead, use the Migration Partner’s interceptor: (emulates VB6’s Move event logic): ' Instead of: Me
— Article contributed by a senior partner at Code Architects, 2025 code architects vb migration partner