'添加控件ImageList1 (在通用属性点选制定义,在图片属性中点击插入图片,选择你要放到程序里的图片) Dim Sn As IntegerPrivate Sub Form_Click() '在窗体上单击
Sn = Sn + 1
If Sn <= ImageList1.ListImages.Count Then '循环浏览
Picture = ImageList1.ListImages(Sn).Picture
Else
Sn = 1
Picture = ImageList1.ListImages(Sn).Picture
End IfEn