lucausa75
18-08-2008, 08:21
Salve ragazzi,
ho realizzato la seguente routine in Visual Basic in modo da avere visibile un contatore del tempo trascorso:
Private Sub tmrContatore_Timer()
Static Tempo As Single
Tempo = Tempo + 1
lblContatore = Tempo
End Sub
http://img295.imageshack.us/img295/9906/immagineit0.jpg (http://imageshack.us)
Il mio problema è riuscire a visualizzare il tempo nel formato: hh:mm:ss (ore:minuti:secondi).
Esempio anzichè avere nella LABEL il valore 194 (secondi) vorrei avere 00h:03m:14s.
Ricordo che c’è una funzione format…possibile?
Grazie per l’aiuto!
ho realizzato la seguente routine in Visual Basic in modo da avere visibile un contatore del tempo trascorso:
Private Sub tmrContatore_Timer()
Static Tempo As Single
Tempo = Tempo + 1
lblContatore = Tempo
End Sub
http://img295.imageshack.us/img295/9906/immagineit0.jpg (http://imageshack.us)
Il mio problema è riuscire a visualizzare il tempo nel formato: hh:mm:ss (ore:minuti:secondi).
Esempio anzichè avere nella LABEL il valore 194 (secondi) vorrei avere 00h:03m:14s.
Ricordo che c’è una funzione format…possibile?
Grazie per l’aiuto!