Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
End Function
End Function
Form code
Quote:
Option Explicit
'Resize controls
ResizeAll Me
end sub
''==============================================================
Option Explicit
Private Type MyControls
Left As Long
Top As Long
Width As Long
Height As Long
End Type
Dim FrmW&, FrmH&, Ctrs() As MyControls
I = Me.Controls.Count - 1
For I = 0 To I
Set Ctrl = Me.Controls(I)
Lt = Ctrs(I).Left / FrmW * FW
Tp = Ctrs(I).Top / FrmH * FH
W = Ctrs(I).Width / FrmW * FW
H = Ctrs(I).Height / FrmH * FH
Ctrl.Move Lt, Tp, W, H
Next
Set Ctrl = Nothing
End Sub