vb 如何将imagelist里面的某个图片显示到picturebox上面?如果显示到image控件上呢?
1个回答
展开全部
Private Sub Command1_Click()
Static i
If i < ImageList1.ListImages.Count Then
i = i + 1
Print "imagelist1里面共:" & ImageList1.ListImages.Count & "张图片,这是第:" & i & "张。"
Picture1.Picture = ImageList1.ListImages(i).Picture
Command1.Caption = "next"
End If
If i = ImageList1.ListImages.Count Then i = 0
End Sub
'添加一个command1、imagelist1
Static i
If i < ImageList1.ListImages.Count Then
i = i + 1
Print "imagelist1里面共:" & ImageList1.ListImages.Count & "张图片,这是第:" & i & "张。"
Picture1.Picture = ImageList1.ListImages(i).Picture
Command1.Caption = "next"
End If
If i = ImageList1.ListImages.Count Then i = 0
End Sub
'添加一个command1、imagelist1
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询