文件名称:cod1
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:116.73kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
在FORM1在增加1个Label1标签,2个TIMER对象,分别为Timer1、Timer2代码如下:
Private Sub Form_Load()
Timer1.Interval = 100
Timer2.Interval = 100
Timer1.Enabled = True
Timer2.Enabled = False
End Sub
Private Sub Timer1_Timer()
Label1.Left = Label1.Left + 50
If Label1.Left + Label1.Width >= Form1.Width Then
Timer2.Enabled = True
Timer1.Enabled = False
End If
End Sub
Private Sub Timer2_Timer()
Label1.Left = Label1.Left - 50
If Label1.Left <= 0 Then
Timer1.Enabled = True
Timer2.Enabled = False
End If
End Sub
-The increase in FORM1 Label1 label 1, 2 TIMER object, respectively, Timer1, Timer2 code is as follows: Private Sub Form_Load () Timer1.Interval = 100 Timer2.Interval = 100 Timer1.Enabled = True Timer2.Enabled = False End Sub Private Sub Timer1_Timer () Label1.Left = Label1.Left+ 50 If Label1.Left+ Label1.Width> = Form1.Width Then Timer2.Enabled = True Timer1.Enabled = False End If End Sub Private Sub Timer2_Timer () Label1.Left = Label1.Left- 50 If Label1.Left < = 0 Then Timer1.Enabled = True Timer2.Enabled = False End If End Sub
Private Sub Form_Load()
Timer1.Interval = 100
Timer2.Interval = 100
Timer1.Enabled = True
Timer2.Enabled = False
End Sub
Private Sub Timer1_Timer()
Label1.Left = Label1.Left + 50
If Label1.Left + Label1.Width >= Form1.Width Then
Timer2.Enabled = True
Timer1.Enabled = False
End If
End Sub
Private Sub Timer2_Timer()
Label1.Left = Label1.Left - 50
If Label1.Left <= 0 Then
Timer1.Enabled = True
Timer2.Enabled = False
End If
End Sub
-The increase in FORM1 Label1 label 1, 2 TIMER object, respectively, Timer1, Timer2 code is as follows: Private Sub Form_Load () Timer1.Interval = 100 Timer2.Interval = 100 Timer1.Enabled = True Timer2.Enabled = False End Sub Private Sub Timer1_Timer () Label1.Left = Label1.Left+ 50 If Label1.Left+ Label1.Width> = Form1.Width Then Timer2.Enabled = True Timer1.Enabled = False End If End Sub Private Sub Timer2_Timer () Label1.Left = Label1.Left- 50 If Label1.Left < = 0 Then Timer1.Enabled = True Timer2.Enabled = False End If End Sub
(系统自动生成,下载前可以参看下载内容)
下载文件列表
cod1.txt
VB代码.doc
VB代码.doc
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.