2个回答
展开全部
呵呵,也可以设置3个图片框,分别在两个图片框里面放上图片(两个可见(picture1和picture2),一个不可见(picture3)),当单击命令按钮的时候便触发图片交替,实现图片变换
private sub command 1 ()
picture3.picture = picture1.picture
picture1.picture = picture2.picture
picture2.picture = picture3.picture
end sub
private sub command 1 ()
picture3.picture = picture1.picture
picture1.picture = picture2.picture
picture2.picture = picture3.picture
end sub
展开全部
可以不可以这样理解,每秒钟变换一个图片
设置一个timer,internal设置为1000
记得之前将command1的style改为1
Dim a As Integer
Private Sub Timer1_Timer()
a = a + 1
If a Mod 2 = 0 Then
Command1.Picture = LoadPicture("picture1的路径")
Else
Command1.Picture = LoadPicture("picture2的路径")
End
End Sub
设置一个timer,internal设置为1000
记得之前将command1的style改为1
Dim a As Integer
Private Sub Timer1_Timer()
a = a + 1
If a Mod 2 = 0 Then
Command1.Picture = LoadPicture("picture1的路径")
Else
Command1.Picture = LoadPicture("picture2的路径")
End
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询