Android Question Chrono Refresh Reset

Discussion in 'Android Questions' started by Croïd, Jun 28, 2015.

  1. Croïd

    Croïd Active Member Licensed User

    how can I do a reset postif ? I have to do 2 Timers ?


    Attached Files:

  2. DonManfred

    DonManfred Expert Licensed User

    Sub timerA_Tick
      periode1 = DateUtils.PeriodBetween(
    DateTime.Now, dataX)
    Dim count As Int = periode1.Minutes*60+periode1.Seconds
    If count >= 0 Then
            label1.Text = periode1.Minutes & 
    ":" & periode1.Seconds
    'If label1.Text = "0:0" Then
    ' to stop use this
            'timerA.Enabled = False 
            ' if you want to reset then you need to set dataX new
            Dim p As Period
            p.Seconds = 
            dataX = DateUtils.AddPeriod(
    DateTime.Now, p)
    End If
    End Sub
    Croïd likes this.
  3. Croïd

    Croïd Active Member Licensed User

    Thanks DonManfred
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice