本文介绍了我创建了一个计时器,它使文本框的文本看起来从左向右移动,我怎样才能让它看起来更流畅?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述







到目前为止它完成了我想要的,但运动看起来并不正确。

计时器内部是100



代码:






So far it does what I want, but the movement doesn''t look right.
Timer internal is 100

Code:

Public Class Form1
    Dim CurrentName As String = String.Empty

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        CurrentName = "I'm looking for somehelp with this :-) Hope everyone's days going well"
        CurrentName = CurrentName + "          "
    End Sub

    Private Sub RotateTextbox_Tick(sender As Object, e As EventArgs) Handles RotateTextbox.Tick
        If Not CurrentName = String.Empty Then
                Dim FirstLetterCPN As String = CurrentName.Substring(0, 1)
                CurrentName = CurrentName.Substring(1, CurrentName.Length - 1) & FirstLetterCPN
        End If
        TextBox1.Text = CurrentName
    End Sub
End Class

推荐答案



这篇关于我创建了一个计时器,它使文本框的文本看起来从左向右移动,我怎样才能让它看起来更流畅?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-23 08:56