vb6.0中依次显示文字

[复制链接]
查看11 | 回复3 | 2013-4-3 14:11:26 | 显示全部楼层 |阅读模式
Private Sub Form_Load()Timer1.Interval = 500Timer1.Enabled = TrueLabel1.Caption = "程序设计很有趣"End SubPrivate Sub Timer1_Timer()Static n As Integer, s As Strings = Label1.CaptionIf n < Len(s) Then n = n + 1 Else n = 1Text1.Text = Left(s, n)Text1.SelStart = Len(Text1.Text)Text1.SelLength = 0End Sub...
回复

使用道具 举报

千问 | 2013-4-3 14:11:26 | 显示全部楼层
窗体上添加1个Label,1个Timer控件,1个TextBox文本框:Private Sub Form_Click()Timer1.Enabled = TrueTimer1_TimerEnd SubPrivate Sub Form_DblClick()Unload MeEnd SubPrivate Sub Form_Load()Timer1.Interv...
回复

使用道具 举报

千问 | 2013-4-3 14:11:26 | 显示全部楼层
弄个定时器就行了。程序太简单,写出来都嫌丢人...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行