If anyone knows how to use a timer to make a picture (within a picture box) change every few seconds pleeease help.... what should the code look like and where abouts in the program should it be!???? <=(
Thanx
Printable View
If anyone knows how to use a timer to make a picture (within a picture box) change every few seconds pleeease help.... what should the code look like and where abouts in the program should it be!???? <=(
Thanx
i would guess it would look something like this:
Private Sub Timer1_Timer()
picture1.picture = loadpicture(path\file)
End Sub
just set the timer's interval property and away you go
you can use this
put this in the timer subroutine
private i as integer
prvate ImgPicture(5) as String
private sub Form_load()
Imgpicture(1)="1.bmp"
Imgpicture(2)="2.bmp"
Imgpicture(3)="3.bmp"
Imgpicture(4)="4.bmp"
Imgpicture(5)="5.bmp"
end sub
sub timer1_timer() {
i=IIf(i>Ubound(ImgPicture),1,i+1)
picture1.picture=Loadpicture(ImgPicture(i))
}