Advertisement
Shell01

Ejemplo de reloj

Jul 11th, 2022
2,822
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
GAMBAS 0.28 KB | None | 0 0
  1. Public Sub Form_Open()
  2.   Me.Caption = "RELOJ"
  3. End
  4.  
  5. Public Sub Timer1_Timer()
  6.   Dim tiempo As Date
  7.  
  8.   tiempo = Time
  9.   lblreloj.Text = Format$(tiempo, "hh:nn:ss")
  10.  
  11. End
  12.  
  13. Public Sub cmdIniciar_Click()
  14.   Timer1.Start
  15. End
  16.  
  17. Public Sub cmdDetener_Click()
  18.   Timer1.Stop
  19. End
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement