Advertisement
S0yn3K

vb.net

Apr 30th, 2017
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. Public Class Form1
  2. Dim aNum As Integer = 0
  3. Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
  4. 'Me.Hide()
  5. setTimer(10)
  6.  
  7. End Sub
  8.  
  9. Private Sub tmath()
  10. Dim a, r As Integer
  11. a = 5
  12. r = a + 5
  13. MsgBox("R: " & r)
  14. End Sub
  15.  
  16. Private Sub tmath1()
  17. Dim a, r As Integer
  18. a = 10
  19. r = a + 5
  20. MsgBox("R1: " & r)
  21. End Sub
  22.  
  23. Private Sub setTimer(ByVal intNum As Integer)
  24. aNum = aNum + 1
  25.  
  26. If aNum > intNum Then
  27. Timer1.Stop()
  28. tmath()
  29. Timer1.Start()
  30. If aNum > 15 Then
  31. aNum = Nothing
  32. Timer1.Stop()
  33. tmath1()
  34. Timer1.Start()
  35. End If
  36. End If
  37. End Sub
  38.  
  39. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement