title: How to stop the timer after specified time
body: <p>I have 3 texbox which will continuously running the random numbers.
  May I know how to stop the timer after certain time? </p>
  
  <p>Example
  Timer1 stop after 5 seconds
  Timer2 stop after 10 seconds
  TImer2 stop after 15 seconds </p>
  
  <pre><code>Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
              Dim num1 As Integer
              Dim rnd As New Random()
  
              num1 = rnd.[Next](0, 2)
              TextBox1.Text = Convert.ToString(num1)
  
          End Sub
      Private Sub Timer2_Tick(sender As Object, e As EventArgs) Handles Timer2.Tick
              Dim num1 As Integer
              Dim rnd As New Random
              num1 = rnd.[Next](1, 9)
              TextBox2.Text = Convert.ToString(num1)
          End Sub
  
          Private Sub Timer3_Tick(sender As Object, e As EventArgs) Handles Timer3.Tick
              Dim num1 As Integer
              Dim rnd As New Random
              num1 = rnd.[Next](1, 9)
              TextBox3.Text = Convert.ToString(num1)
          End Sub
    Private Sub btnrndpick_Click(sender As Object, e As EventArgs) Handles btnrndpick.Click
          Timer1.Enabled = True
          Timer2.Enabled = True
          Timer3.Enabled = True
          Timer4.Enabled = True
          Timer5.Enabled = True
          btnrndpick.Text = "RUNNING"
      End Sub
  </code></pre>