VB图片不间断滚动
请问谁能帮我一下,我想做一个图片滚动效果,图片头尾相连的滚动,不间断的
Option Explicit Const 总个数 = 4 Dim 顺序(0 To 总个数) As Long Private Sub Form_Load() Dim i As Long 顺序(0) = 0 '被始化顺序 Image1(i).Left = 100 '被始化起始坐标 For i = 1 To 总个数 '依次排列各个图片 顺序(i) = i Image1(i).Left = Image1(i - 1).Left + Image1(i - 1).Width Next i End Sub Private Sub Timer1_Timer() '向左移动 Dim i As Long, j As Long If Image1(顺序(0)).Left < -Image1(顺序(0)).Width Then '如果向左移出的,刚变换一下顺序 j = 顺序(0) For i = 1 To 总个数 顺序(i - 1) = 顺序(i) Next i 顺序(总个数) = j '把第一个调到最后去 '把位置也调到最后去,图像连成一线,用于图像比滚动区域要大 'Image1(j).Left = Image1(顺序(3)).Left + Image1(顺序(3)).Width '把位置调到最后去,图像按滚动区域调整位置 Image1(j).Left = Picture1.Width End If '向左移动 For i = 0 To 总个数 Image1(顺序(i)).Left = Image1(顺序(i)).Left - 30 Next i End Sub