Real time Clock using Visual Basic 6
Step 1: Open MS Visual Basic 6 Step 2: Select Standard EXE as the New Project. Now you have a form named Form1. Step 3: Add a Label to Form1. Now you also have a label named Label1 Step 4: Copy the code below and paste it inside Form1. Step 5: Click Run. Enjoy! :) Dim WithEvents kell As Timer Private Sub kell_Timer() Label1.Caption = Format$(Time, "hh:mm:ss AM/PM") End Sub Private Sub Form_Load()