我的移动标签闪烁. [英] My Moving Label flashes..

查看:99
本文介绍了我的移动标签闪烁.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用以下代码创建了一个移动标签:

I have created a moving label with this code:

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
    MovingNameLabel.SetBounds(MovingNameLabel.Location.X - 1, 1, 223, 45)
    If MovingNameLabel.Location.X <= -339 Then
        MovingNameLabel.Location = New Point(461, MovingNameLabel.Location.Y)
    End If
End Sub


我面临的问题是,标签移动时,标签的末端会闪烁.我确实将其设置为透明的,那有什么影响吗?任何建议将不胜感激! :)


The problem I am facing is that while the label is moving, the end of it flashes. I do have it set to transparent, so does that have any affect? Any suggestions would be greatly appreciated! :)

推荐答案

尝试设置表单
Try setting the Form DoubleBuffered[^] property to True - that may cure the flickering.


这篇关于我的移动标签闪烁.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆