Hem / Tips & tricks
Public Sub CenterImage(ObjectToCenter As Object, OwnerForm As Form)ObjectToCenter.Top = ((OwnerForm.ScaleHeight - ObjectToCenter.Height) / 2)ObjectToCenter.Left = ((OwnerForm.ScaleWidth - ObjectToCenter.Width) / 2)End Sub