Advertisement
Guest User

Untitled

a guest
May 15th, 2013
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.59 KB | None | 0 0
  1.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  2.         'berekenen timer
  3.         Timer1.Enabled = False
  4.         Dim timetogo As String() = TimeString.Split(":")
  5.         If timetogo(1) > 30 Then
  6.             timetogo(1) = timetogo(1) - 30
  7.             Timer2.Interval = (1800000 - (timetogo(1) * 60 + timetogo(2)) * 1000)
  8.             Timer2.Enabled = True
  9.         End If
  10.     End Sub
  11.  
  12.  
  13.     Private Sub timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
  14.         Timer1.Enabled = True
  15.     End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement