VB Code:
Me.DesktopBounds = Screen.PrimaryScreen.WorkingArea
Dim dHeightProportion As Double = Me.Height / dHeight
Dim dWidthProportion As Double = Me.Width / dWidth
Dim ctl As Control
Dim icount As Integer = 0
Dim sFont As Single
For Each ctl In Controls
ctl.Left = CInt(arrLeft(icount, 0) * dWidthProportion)
ctl.Top = CInt(arrLeft(icount, 1) * dHeightProportion)
ctl.Width = CInt(arrLeft(icount, 2) * dWidthProportion)
ctl.Height = CInt(arrLeft(icount, 3) * dHeightProportion)
sFont = CInt(ctl.Font.Size * CInt(dWidthProportion))
With ctl
.Font = New Font(.Font.Name, sFont, .Font.Style, _
.Font.Unit)
End With
icount = icount + 1
Next