practice3_2.frm
来自「深圳大学的vb上机与教学的课件」· FRM 代码 · 共 101 行
FRM
101 行
VERSION 5.00
Begin VB.Form Form1
Caption = "100以内的加法"
ClientHeight = 1935
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 1935
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "计算"
Height = 495
Left = 2520
TabIndex = 4
Top = 1080
Width = 1335
End
Begin VB.CommandButton Command1
Caption = "出题"
Height = 495
Left = 600
TabIndex = 3
Top = 1080
Width = 1215
End
Begin VB.TextBox Text3
Height = 495
Left = 3480
TabIndex = 2
Top = 240
Width = 735
End
Begin VB.TextBox Text2
Height = 495
Left = 1920
TabIndex = 1
Top = 240
Width = 735
End
Begin VB.TextBox Text1
Height = 495
Left = 360
TabIndex = 0
Top = 240
Width = 735
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "="
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 3000
TabIndex = 6
Top = 360
Width = 165
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "+"
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 1440
TabIndex = 5
Top = 360
Width = 165
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Randomize
Text1.Text = Int(Rnd * 100 + 1)
Text2.Text = Int(Rnd * 100 + 1)
Text3.Text = ""
End Sub
Private Sub Command2_Click()
Text3.Text = Val(Text1.Text) + Val(Text2.Text)
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?