Sub resizeLB(l As Label,stdRes as int)
Dim LV As LayoutValues
LV=GetDeviceLayoutValues
Dim s As Float
Dim m As Int
If LV.Height < LV.Width Then
s = LV.Height
Else
s=LV.Width
End If
m=LV.Width/2
s = s/stdRes
l.Width=l.Width*s
l.Height=l.Height*s
l.Left = (m-(stdRes/2)*s)+l.Left*s
l.Top = l.Top*s
End Sub