title: Changing background image with timer
body: <p>Here is my code in vb.net for automatically changing image using timer but code doesn't work...</p>
  
  <pre><code> Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
      Me.BackgroundImage = Image.FromFile("C:\images\\" + Label1.Text + "1.jpg")
      Dim i As Integer = Convert.ToInt32(Label1.Text)
      i += 1
  
      If (i &gt; 4) Then
          i = 1
      End If
      Label1.Text = i.ToString()
   End Sub
  </code></pre>