Scrolling Background Image (help please)

04-28-2006, 12:15 AM
I am trying to make a picturebox continously scroll through an image. Once the edge of the image is reached i want the same image to start again. So basically a never ending scrolling image is what I am trying to do.
Here's my code. Right now my picture scrolls through once and then leaves a blank space as big as the image then scrolls again. How can I fill in that blank space? Thanks. (My picture is 600 width ,850 height and is in a picture box) Thanks!

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick

For z = 0 To 1
imgSpace.Top = imgSpace.Top + 10
If imgSpace.Top >= 850 Then
imgSpace.Top = -850
End If
Next z

End Sub

04-28-2006, 02:10 AM

you will need two images for this or you use the DrawImage method.


04-28-2006, 01:09 PM
Thanks, that worked.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum