VB6.0如何用VB6.0做动态图像,就是简单的把图像从左端移动到右端,求高手~谢谢
答案:3 悬赏:20
解决时间 2021-03-05 06:40
- 提问者网友:暖心后
- 2021-03-05 02:25
我要的是具体怎么写,谢谢~
最佳答案
- 二级知识专家网友:如果这是命
- 2021-03-05 03:19
Private Sub Timer1_Timer()
Label1.Left = Label1.Left - 20
End Sub
注:Label1.Left - 20 向左移动
Label1.Left +20向右移动
Timer1.Interval = 1000'时间间隔为一秒
Label1.Left = Label1.Left - 20
End Sub
注:Label1.Left - 20 向左移动
Label1.Left +20向右移动
Timer1.Interval = 1000'时间间隔为一秒
全部回答
- 1楼网友:统治我的世界
- 2021-03-05 04:35
先添加Timer控件,设置Interval为60
Private Sub Timer1_Timer()
If image1.Left + image1.Width <= form1.Width + image1.Width Then
image1.Left = image1.Left + 10
Else
image1.Left = form1.Left - image1.Width
End If
End Sub
这段程序可以让图片循环从左向右移动
- 2楼网友:傲娇菇凉
- 2021-03-05 04:03
利用控件的移动啊
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯
• 手机登qq时,显示手机磁盘不足,清理后重新登 |
• 刺客的套装怎么选啊? |