标题:关于一个图片滚动的程序
取消只看楼主
yuiolivia
Rank: 1
等 级:新手上路
帖 子:41
专家分:0
注 册:2005-12-5
 问题点数:0 回复次数:0 
关于一个图片滚动的程序

Dim num, time As Integer
Private Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click
Dim show As Integer
If Timer1.Enabled Then
show = MsgBox("还看照片吗?", MsgBoxStyle.YesNo + MsgBoxStyle.Information + MsgBoxStyle.DefaultButton1, "选择")
If show = MsgBoxResult.Yes Then
Timer1.Stop()
End If
Else
Timer1.Start()
End If
End Sub

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
PictureBox1.Image = ImageList1.Images(num)
num = (num + 1) Mod time
End Sub

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
num = ImageList1.Images.Count
time = 0
End Sub

出现了这个错误,高手们指点一下,谢谢!

搜索更多相关主题的帖子: MsgBoxStyle show 滚动 
2006-10-22 11:00



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-97917-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.342328 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved