Function AutoSize() Dim Ctr As Control Dim Size As Double
On Error Resume Next Size = Screen.Width / (800 * 15) For Each Ctr In Me.Controls With Ctr If UCase$(TypeName(Ctr)) = "LINE" Then .X1 = .X1 * Size: .X2 = .X2 * Size .Y1 = .Y1 * Size: .Y2 = .Y2 * Size Else .Move .Left * Size, .Top * Size, .Width * Size, .Height * Size .FontSize = .FontSize * Size End If End With Next End Function
Dim Ctr As Control
Dim Size As Double
On Error Resume Next
Size = Screen.Width / (800 * 15)
For Each Ctr In Me.Controls
With Ctr
If UCase$(TypeName(Ctr)) = "LINE" Then
.X1 = .X1 * Size: .X2 = .X2 * Size
.Y1 = .Y1 * Size: .Y2 = .Y2 * Size
Else
.Move .Left * Size, .Top * Size, .Width * Size, .Height * Size
.FontSize = .FontSize * Size
End If
End With Next
End Function