📄 liuhao.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3255
ClientLeft = 60
ClientTop = 450
ClientWidth = 4980
LinkTopic = "Form1"
ScaleHeight = 3255
ScaleWidth = 4980
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command4
Caption = "清除"
Height = 375
Left = 1080
TabIndex = 16
Top = 2760
Width = 855
End
Begin VB.TextBox Text1
Height = 495
Left = 120
TabIndex = 15
Text = "Text1"
Top = 120
Width = 2775
End
Begin VB.CommandButton Command3
Caption = "="
Height = 375
Left = 960
TabIndex = 14
Top = 2280
Width = 1095
End
Begin VB.CommandButton Command2
Caption = "/"
Height = 375
Index = 3
Left = 2040
TabIndex = 13
Top = 1800
Width = 375
End
Begin VB.CommandButton Command2
Caption = "*"
Height = 375
Index = 2
Left = 1560
TabIndex = 12
Top = 1800
Width = 375
End
Begin VB.CommandButton Command2
Caption = "-"
Height = 375
Index = 1
Left = 1080
TabIndex = 11
Top = 1800
Width = 375
End
Begin VB.CommandButton Command2
Caption = "+"
Height = 375
Index = 0
Left = 600
TabIndex = 10
Top = 1800
Width = 375
End
Begin VB.CommandButton Command1
Caption = "9"
Height = 375
Index = 9
Left = 2280
TabIndex = 9
Top = 1200
Width = 375
End
Begin VB.CommandButton Command1
Caption = "8"
Height = 375
Index = 8
Left = 1800
TabIndex = 8
Top = 1200
Width = 375
End
Begin VB.CommandButton Command1
Caption = "7"
Height = 375
Index = 7
Left = 1320
TabIndex = 7
Top = 1200
Width = 375
End
Begin VB.CommandButton Command1
Caption = "6"
Height = 375
Index = 6
Left = 840
TabIndex = 6
Top = 1200
Width = 375
End
Begin VB.CommandButton Command1
Caption = "5"
Height = 375
Index = 5
Left = 360
TabIndex = 5
Top = 1200
Width = 375
End
Begin VB.CommandButton Command1
Caption = "4"
Height = 375
Index = 4
Left = 2280
TabIndex = 4
Top = 720
Width = 375
End
Begin VB.CommandButton Command1
Caption = "3"
Height = 375
Index = 3
Left = 1800
TabIndex = 3
Top = 720
Width = 375
End
Begin VB.CommandButton Command1
Caption = "2"
Height = 375
Index = 2
Left = 1320
TabIndex = 2
Top = 720
Width = 375
End
Begin VB.CommandButton Command1
Caption = "1"
Height = 375
Index = 1
Left = 840
TabIndex = 1
Top = 720
Width = 375
End
Begin VB.CommandButton Command1
Caption = "0"
Height = 375
Index = 0
Left = 360
TabIndex = 0
Top = 720
Width = 375
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim Index, a, i As Integer
Dim num1, num2 As Double
Dim b() As Integer
Private Sub Command1_Click(Index As Integer)
Text1.Text = Text1.Text + Command1(Index).Caption
End Sub
Private Sub Command2_Click(Index As Integer)
num1 = Val(Text1.Text)
Text1.Text = " "
a = Index
End Sub
Private Sub Command3_Click()
Select Case a
Case 0
num2 = Val(Text1.Text)
Text1.Text = num1 + num2
End Select
End Sub
Private Sub Command4_Click()
Text1.Text = " "
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -