3个回答
展开全部
Private Sub Form_Load()
Timer1.Enabled = True
Timer1.Interval = 500 '500毫秒等于半秒
End Sub
Private Sub Timer1_Timer()
Static a As Long
a = a + 1
If Int(a / 2) * 2 = a Then '判断是否偶数
Picture1.Picture = LoadPicture("01.jpg") '图片名称
Else
Picture1.Picture = LoadPicture("")
End If
End Sub
Timer1.Enabled = True
Timer1.Interval = 500 '500毫秒等于半秒
End Sub
Private Sub Timer1_Timer()
Static a As Long
a = a + 1
If Int(a / 2) * 2 = a Then '判断是否偶数
Picture1.Picture = LoadPicture("01.jpg") '图片名称
Else
Picture1.Picture = LoadPicture("")
End If
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
timer中写: x as long x=随机生存一个数字,'把图片名改成数字 picture1.picture文件路径"\&"x"&.bmp"
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
‘试一下
Private Sub Form_Load()
Picture1.Picture = LoadPicture("d:\Debug\01.jpg")
Timer1.Interval = 500
End Sub
Private Sub Timer1_Timer()
Picture1.Visible = Not Picture1.Visible
End Sub
Private Sub Form_Load()
Picture1.Picture = LoadPicture("d:\Debug\01.jpg")
Timer1.Interval = 500
End Sub
Private Sub Timer1_Timer()
Picture1.Visible = Not Picture1.Visible
End Sub
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询