Private Sub Form_Load()
Form_Resize
End Sub

Private Sub Form_Resize()
On Error Resume Next
code.Width = Me.ScaleWidth
code.Height = Me.ScaleHeight - Label1.Height - Command1.Height
Label1.Width = Me.ScaleWidth
Label1.Top = Me.ScaleHeight - Label1.Height - Command1.Height
Command1.Top = Me.ScaleHeight - Command1.Height
End Sub