Put a picture box on your form, and a timer with interval of 1000
Leave default names
VB Code:
  1. Public Sub ShowAnalogTime(ByVal MyTime As Date, Pic As PictureBox)
  2.     Dim H As Single, M As Single, S As Single
  3.     Const HPI As Double = 1.5707963267949  ' (4 * Atn(1)) / 2
  4.     Const PI2 As Double = 6.28318530717959 ' (4 * Atn(1)) * 2
  5.    
  6.     H = (Hour(MyTime) Mod 12) / 12#
  7.     M = Minute(MyTime) / 60#
  8.     S = Second(MyTime) / 60#
  9.    
  10.     Pic.Scale (-1.1, -1.1)-(1.1, 1.1)
  11.     Pic.DrawWidth = 2
  12.     Pic.Cls
  13.    
  14.     Pic.Circle (0, 0), 1, RGB(128, 128, 128)
  15.    
  16.     Pic.Line (0, 0)-(0.5 * Cos(PI2 * H - HPI), 0.5 * Sin(PI2 * H - HPI)), RGB(0, 0, 128)
  17.     Pic.Line (0, 0)-(0.8 * Cos(PI2 * M - HPI), 0.8 * Sin(PI2 * M - HPI)), RGB(128, 128, 255)
  18.     Pic.Line (0, 0)-(Cos(PI2 * S - HPI), Sin(PI2 * S - HPI)), RGB(255, 255, 255)
  19. End Sub
  20.  
  21. Private Sub Timer1_Timer()
  22.     ShowAnalogTime Time, Picture1
  23. End Sub