Sei sulla pagina 1di 1

Private Sub Form_Load()

'center the form:


Me.Top = (Screen.Height - Me.Height) / 2
Me.Left = (Screen.Width - Me.Width) / 2

'display date & time


lblDate.Caption = Format$(Date, "d/m/yyyy")
lblTime.Caption = Format$(Time, "h:nn AM/PM")

End Sub