Visual Basic - ayuda sobre hora en curso

Life is soft - evento anual de software empresarial
 
Vista:

ayuda sobre hora en curso

Publicado por lucy (4 intervenciones) el 23/09/2004 20:17:38
necesito ayuda.. tengo un programa donde tengo un label y en cuanto ejecute el programa necesito que aparezca la hora inmediatamente. y lo que hace es que me muestra la hora nada mas cuando presiono cualquier tecla .
Private Sub Form_Load()
Timer1.Interval = 1000
Timer1.Enabled = True
End Sub
Private Sub Timer1_Timer()
lbltiempo.Caption = Format(Time, "hh:mm:ss AMPM")
lbltiempo.Refresh
end sub
gracias por su ayuda

Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:ayuda sobre hora en curso

Publicado por miguel (1042 intervenciones) el 23/09/2004 21:12:54
Cambialo a:
Private Sub Form_Load()
Timer1.Interval = 1000
Timer1.Enabled = True
lblTiempo = Format(Time, "hh:mm:ss AMPM")
End Sub
Private Sub Timer1_Timer()
DoEvents
lblTiempo.Caption = Format(Time, "hh:mm:ss AMPM")
lblTiempo.Refresh
End Sub
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar