标题:怎么不能如其所愿呢?
只看楼主
wenber0598
Rank: 1
等 级:新手上路
帖 子:101
专家分:0
注 册:2007-2-27
 问题点数:0 回复次数:1 
怎么不能如其所愿呢?

3leD51MD.rar (1.04 KB) 怎么不能如其所愿呢?




Private Sub Command1_Click()
If Command1.Caption = "&S开始" Then
Command1.Caption = "&E暂停"
Timer1.Enabled = True
Timer2.Enabled = True
ElseIf Command1.Caption = "&E暂停" Then
Command1.Caption = "&S开始"
Timer1.Enabled = False
Timer2.Enabled = False
End If
Timer1.Interval = 1
Timer2.Interval = 1
End Sub

Private Sub Form_Load()
Me.Caption = "滚动字幕板"
Label1.Left = Form1.Width - Label1.Width
Label1.Top = (Me.ScaleHeight - Label1.Height) / 2
End Sub

Private Sub Text1_Change()
Label1.Caption = Text1.Text
Label3.Caption = Text1.Text
End Sub

Private Sub Timer1_Timer()
If Label1.Left > 0 Then
Label1.Move Label1.Left - 10
Else

Timer1.Enabled = False
Timer2.Enabled = False
End If

End Sub

Private Sub Timer2_Timer()
If Label3.Left < Form1.Width Then
Label3.Left = Label3.Left + 30
Else
Label3.Left = 0 - Label3.Width
End If
If Label1.Top = Label3.Top - Label3.Width Then Label2.Caption = Label2.Caption + 1 '怎么不能如其所愿呢?
End Sub

搜索更多相关主题的帖子: False 
2007-03-24 12:15
Joforn
Rank: 6Rank: 6
等 级:贵宾
威 望:23
帖 子:1242
专家分:122
注 册:2007-1-2
得分:0 
大哥,你上传的附件不全啊。

VB QQ群:47715789
2007-03-24 19:28



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-126382-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.511143 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved