Private Declare Sub GetSystemTime Lib \"kernel32\" (lpSystemTime As SYSTEMTIME)
Private Type SYSTEMTIME wYear As Integer wMonth As Integer wDayOfWeek As Integer wDay As Integer wHour As Integer wMinute As Integer wSecond As Integer wMilliseconds As Integer End Type
Private Sub Form_Activate() Dim SysTime As SYSTEMTIME Dim lHour, lMinute, lSecond, lMilliseconds As Long Do GetSystemTime SysTime DoEvents lHour = Format(SysTime.wHour + 1, \"00\") lMinute = Format(SysTime.wMinute, \"00\") lSecond = Format(SysTime.wSecond, \"00\") lMilliseconds = Left(Format(SysTime.wMilliseconds, \"00\"), 2) DoEvents Me.Caption = lHour & \":\" & lMinute & \":\" & lSecond & \":\" & lMilliseconds Loop End Sub
Private Sub Form_Unload(Cancel As Integer) End End Sub
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.