📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 4665
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 4665
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command3
Caption = "END"
Height = 495
Left = 3840
TabIndex = 8
Top = 3480
Width = 615
End
Begin VB.CommandButton Command2
Caption = "CLS"
Height = 495
Left = 3000
TabIndex = 7
Top = 3480
Width = 615
End
Begin VB.TextBox Text3
Height = 495
Left = 360
TabIndex = 6
Top = 2640
Width = 1695
End
Begin VB.TextBox Text2
Height = 495
Left = 360
TabIndex = 5
Top = 1560
Width = 1695
End
Begin VB.TextBox Text1
Height = 495
Left = 360
TabIndex = 4
Top = 600
Width = 1695
End
Begin VB.CommandButton Command1
Caption = "/"
Height = 495
Index = 3
Left = 3000
TabIndex = 3
Top = 2640
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "*"
Height = 495
Index = 2
Left = 3000
TabIndex = 2
Top = 1800
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "-"
Height = 495
Index = 1
Left = 3000
TabIndex = 1
Top = 1080
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "+"
Height = 495
Index = 0
Left = 3000
TabIndex = 0
Top = 360
Width = 1215
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(Index As Integer)
Dim a, b As Integer
a = Text1.Text
b = Text2.Text
If Index = 0 Then Text3.Text = a + b
If Index = 1 Then Text3.Text = a - b
If Index = 2 Then Text3.Text = a * b
If Index = 3 Then Text3.Text = a / b
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 + -