ciao a tutti,
vorrei gestire una funzione che si attivi ogni tot di tempo stabilito dall'utente.
ho provato ad usarre l'oggetto timer, ma con scarso risultato, nel senso che non riesco a far partire il contatore da 0 secondi.
mi spiego meglio:
strB parte dai secondi di sistemacodice:Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Dim strK As Integer Dim strB As Integer Dim str60 As Integer = 60 strB = Second(TimeString) if strB >= Me.campolim.text then me.timer1.Enabled = false end if End Sub
io vorrei che partisse da 0 e si incrementasse di 1 secondo fino al limite imposto dall'utente.
come posso fare?
ciao
Grazie

Rispondi quotando