怎样VB 文本框从右向左移动???Text1.Left = Text1.Left + 100是向右移动,那向左呢?!
2个回答
展开全部
Private Sub Form_Load()
Timer1.Interval = 100
Timer1.Enabled = True
End Sub
Private Sub Timer1_Timer()
Static a As Integer
If a = 0 Or Text1.Left < 0 Then
a = 100
ElseIf Text1.Left > Me.ScaleWidth - Text1.Width Then
a = -100
End If
Text1.Left = Text1.Left + a
End Sub
Timer1.Interval = 100
Timer1.Enabled = True
End Sub
Private Sub Timer1_Timer()
Static a As Integer
If a = 0 Or Text1.Left < 0 Then
a = 100
ElseIf Text1.Left > Me.ScaleWidth - Text1.Width Then
a = -100
End If
Text1.Left = Text1.Left + a
End Sub
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询