Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

scrolling images on a command button

Status
Not open for further replies.

lrfcbabe

Programmer
Jul 19, 2001
108
US
Yeah right, so I thought it was that simple, well this does not work. Has anybody any suggestions?
Private Sub Timer6_Timer()
If cmdScrollBackward.Picture = "c:\program files\dswr\backwardscroll.bmp" Then
cmdScrollBackward.Picture = "c:\program files\dswr\backwardscroll1.bmp"
End If
If cmdScrollBackward.Picture = "c:\program files\dswr\backwardscroll1.bmp" Then
cmdScrollBackward.Picture = "c:\program files\dswr\backwardscroll2.bmp"
End If
If cmdScrollBackward.Picture = "c:\program files\dswr\backwardscroll2.bmp" Then
cmdScrollBackward.Picture = "c:\program files\dswr\backwardscroll3.bmp"
End If
If cmdScrollBackward.Picture = "c:\program files\dswr\backwardscroll3.bmp" Then
cmdScrollBackward.Picture = "c:\program files\dswr\backwardscroll4.bmp"
End If
If cmdScrollBackward.Picture = "c:\program files\dswr\backwardscroll4.bmp" Then
cmdScrollBackward.Picture = "c:\program files\dswr\backwardscroll5.bmp"
End If
If cmdScrollBackward.Picture = "c:\program files\dswr\backwardscroll5.bmp" Then
cmdScrollBackward.Picture = "c:\program files\dswr\backwardscroll.bmp"
End If
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top