try this:
Code:
Public Function GetPics()
Public pic() As String = Directory.GetFiles(strPicSource)
Public picturecount as integer = 0
timer1.start
End Function
tick function:
Code:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
if picturecount <> ubound(pic)
picPath = pic(picturecount)
PictureBox1.ImageLocation = picPath
picturecount = picturecount + 1
end if
End Sub
This is just off the top of my head though - and this does sound like homework to me . . .
Also you should be able to manipulate it to not use public variables - it's late and i've not had much sleep
Bookmarks