当前位置: > 怎样VB 文本框从右向左移动?Text1.Left = Text1.Left + 100是向右移动,那向左呢?...
题目
怎样VB 文本框从右向左移动?Text1.Left = Text1.Left + 100是向右移动,那向左呢?

提问时间:2021-01-10

答案
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
举一反三
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
1,人们染上烟瘾,最终因吸烟使自己丧命.
版权所有 CopyRight © 2012-2019 超级试练试题库 All Rights Reserved.