Hey quick question...Ive written a little program that grabs local radar images from a web server. The images are updated ever 10 minutes so I want to display the four images I DL until I DL the next four images my problem is that the code Ive written causes the app to crash every 20~30sec...guess Im doing something wrong. Anyone have any ideas? My code is below
Code:
Private Sub LoadImages(ByVal status As Boolean)
Dim intX As Integer
Dim myImage As ArrayList = New ArrayList()
Dim tThread As System.Threading.Thread
For intX = 0 To 3
myImage.Add(Image.FromFile(".\images\" & intX & ".gif")) Next intX
Do While status = True
For intX = 0 To 3
PictureBox1.Location = New System.Drawing.Point(-5, -20)
Me.PictureBox1.Image = CType(myImage(intX), bitmap)
PictureBox1.Size = PictureBox1.Image.Size
System.Threading.Thread.Sleep(1000)
PictureBox1.Refresh()
Next intX
Loop
End Sub