Option Explicit Private Sub Form_Load() With Timer1 .Interval = 500: .Enabled = True End With With Label1 .AutoSize = True: .FontSize = 24 .Top = 0: .Left = 0 End With End Sub
Private Sub Timer1_Timer() Label1.Caption = Format(Now, "yyyy-mm-dd hh:mm:ss") End Sub