vb.net 滚动图片示例(vs2008 源代码)
Public Class gundong
Dim num As Integer = 1
Dim i As Integer = 0
Dim time As Integer
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
If i > ImageList1.Images.Count Then
i = 0
Else
i += 1
End If
Select Case i
Case 1
PictureBox1.Image = ImageList1.Images(i)
Case 2
PictureBox1.Image = ImageList1.Images(i)
Case 3
PictureBox1.Image = ImageList1.Images(i)
Case 4
PictureBox1.Image = ImageList1.Images(i)
Case 5
PictureBox1.Image = ImageList1.Images(i)
Case 6
PictureBox1.Image = ImageList1.Images(i)
Case 7
PictureBox1.Image = ImageList1.Images(i)
Case 8
PictureBox1.Image = ImageList1.Images(i)
Case 9
PictureBox1.Image = ImageList1.Images(i)
Case 10
PictureBox1.Image = ImageList1.Images(i)
Case 11
PictureBox1.Image = ImageList1.Images(i)
Case 12
PictureBox1.Image = ImageList1.Images(i)
Case 13
PictureBox1.Image = ImageList1.Images(i)