practice9_7.frm
来自「深圳大学的vb上机与教学的课件」· FRM 代码 · 共 55 行
FRM
55 行
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.Timer Timer2
Enabled = 0 'False
Interval = 60000
Left = 3840
Top = 2640
End
Begin VB.Timer Timer1
Interval = 60000
Left = 3360
Top = 2640
End
Begin VB.TextBox Text1
Height = 2175
Left = 360
MultiLine = -1 'True
ScrollBars = 3 'Both
TabIndex = 0
Top = 240
Width = 3975
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Timer1_Timer()
Timer1.Enabled = False
Timer2.Enabled = True
End Sub
Private Sub Timer2_Timer()
Text1.Text = Text1.Text & Time() & " "
For i = 1 To 10
Text1.Text = Text1.Text & Str(Int(Rnd * 100 + 1))
Next i
Text1.Text = Text1.Text & Chr(13) & Chr(10)
Timer1.Enabled = True
Timer2.Enabled = False
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?