title: How to create a runtime timer.tick event?
body: <p>i'm really bothered on how to create a timer.tick event on VB.net.</p>
  
  <p>How my program should work:</p>
  
  <p>Actually, i'm creating an FCFS algorithm and im aiming to display the gantt chart using progressbars. Regarding that, i want my timers to control a given progressbar. and after a progressbar reached its maximum, the timer will stop and the next timer will start and the next progressbar will function too. I really dont know how to do this. Im a newbie. please help me. :(</p>
  
  <p>This is my code:</p>
  
  <pre><code>Private progress As New List(Of ProgressBar)
  
  Private timex As New List(Of Timer)
  
  For cnt4 = 0 To (Val(TextBox1.Text) - 1)
  
          progress.Add(New ProgressBar)
          With progress(cnt4)
              .Parent = Me
              .Left = 0
              .Height = 23
              .Width = 50
              .Top = .Height * cnt4 + 50
              .Visible = True
              .Tag = cnt4
              .Text = ""
              .Maximum = Val(burstbox(cnt4).Text)
              .Minimum = 0
              .Name = "progress" &amp; cnt4
              .Location = New Point(17 + (.Width * cnt4), 532)
  
          End With
  
          timex.Add(New Timer)
  
          With timex(cnt4)
  
              .Tag = cnt4
              .Interval = 100
          End With
  
      Next
  
  
  End Sub
  </code></pre>