我如何让它向左走而不是向右走有一个停止点?
How do I make it go left instead of right with a stopping point?
Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
'Timer run from left to right to the number of input
PictureBox1.Location = New Point(PictureBox1.Location.X + TextBox1.Text, PictureBox1.Location.Y)
End Sub
一路顺风,没有停歇点。
从之前的 X 位置减去那个 TextBox 值而不是加上它怎么样?
当然,添加到 X 坐标会将图片向右移动。
Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
'Timer run from left to right to the number of input
PictureBox1.Location = New Point(PictureBox1.Location.X + TextBox1.Text, PictureBox1.Location.Y)
End Sub
一路顺风,没有停歇点。
从之前的 X 位置减去那个 TextBox 值而不是加上它怎么样?
当然,添加到 X 坐标会将图片向右移动。