📄 form1.frm
字号:
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.CommandButton Command3
Caption = "关闭"
Height = 495
Left = 3360
TabIndex = 8
Top = 2400
Width = 975
End
Begin VB.CommandButton Command2
Caption = "清除"
Height = 495
Left = 1800
TabIndex = 7
Top = 2400
Width = 975
End
Begin VB.CommandButton Command1
Caption = "计算"
Height = 495
Left = 240
TabIndex = 6
Top = 2400
Width = 975
End
Begin VB.TextBox Text3
Height = 375
Left = 1440
TabIndex = 5
Top = 1200
Width = 1095
End
Begin VB.TextBox Text2
Height = 375
Left = 1440
TabIndex = 4
Top = 720
Width = 1095
End
Begin VB.TextBox Text1
Height = 375
Left = 1440
TabIndex = 3
Top = 240
Width = 1095
End
Begin VB.Label Label3
Caption = "结果"
Height = 255
Left = 240
TabIndex = 2
Top = 1320
Width = 735
End
Begin VB.Label Label2
Caption = "加数"
Height = 255
Left = 240
TabIndex = 1
Top = 720
Width = 735
End
Begin VB.Label Label1
Caption = "被加数"
Height = 255
Left = 240
TabIndex = 0
Top = 240
Width = 735
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()
Dim add1 As String
Dim add2 As String
add1 = Text1.Text
add2 = Text2.Text
Text3.Text = add1 + add2
End Sub
Private Sub Command2_Click()
Text1.Text = " "
Text2.Text = " "
Text3.Text = " "
End Sub
Private Sub Command3_Click()
End
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -