Re: Basic Slideshow question
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 :(
Re: Basic Slideshow question
Cheers for the reply. Believe me, if this if Homework as you suggest then I must be the oldest student in Britain at 31!!
I was just very tired just like yourself after a 10hr shift then coming home to this project. Check my other posts to see other projects I have written. You'll know I'm not a Student then!
Will check out your code this morning.
Thanks again :)