vb中用Timer控件让image运动是,周围闪烁.怎样才能解决这个问题?
答案:2 悬赏:60 手机版
解决时间 2021-02-05 18:18
- 提问者网友:动次大次蹦擦擦
- 2021-02-05 00:38
最好举个例子~
最佳答案
- 五星知识达人网友:底特律间谍
- 2021-02-05 00:57
用VB.NET还是VB6?建议还是不要这样搞了,效果不好的,闪屏厉害。用wpf做流畅。
全部回答
- 1楼网友:大漠
- 2021-02-05 02:27
option explicit dim a as integer dim b as integer dim c as integer dim d as integer dim e as integer dim f as integer private sub form_click() form2.scalemode = 6 form2.scale (-100, 100)-(100, -100) drawwidth = 25 a = -80 b = 88 c = -80 d = 78 e = -80 f = -83 form2.circle (a, b), 3, vbblue form2.circle (c, d), 3, vbblue form2.circle (e, f), 3, vbred timer1 = true end sub private sub timer1_timer() cls a = a + 1 c = c + 1 e = e + 1 if b <= -2 then b = b else b = b - 1 end if if f >= 2 or d <= -2 then d = d f = f else d = d - 1 f = f + 1 end if form2.circle (a, b), 3, vbblue form2.circle (c, d), 3, vbblue form2.circle (e, f), 3, vbred end sub
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯