📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form compute
BorderStyle = 1 'Fixed Single
Caption = "计算器"
ClientHeight = 6660
ClientLeft = 45
ClientTop = 330
ClientWidth = 6225
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 6660
ScaleWidth = 6225
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command3
Caption = "清除表达式"
Height = 255
Left = 4440
TabIndex = 24
Top = 240
Width = 1095
End
Begin VB.Frame Frame2
Caption = "运算符"
Height = 3855
Left = 4080
TabIndex = 17
Top = 2640
Width = 1695
Begin VB.CommandButton Command2
Caption = ")"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 5
Left = 240
TabIndex = 23
Top = 3360
Width = 1215
End
Begin VB.CommandButton Command2
Caption = "("
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 4
Left = 240
TabIndex = 22
Top = 2760
Width = 1215
End
Begin VB.CommandButton Command2
Caption = "/"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 3
Left = 240
TabIndex = 21
Top = 2160
Width = 1215
End
Begin VB.CommandButton Command2
Caption = "*"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 2
Left = 240
TabIndex = 20
Top = 1560
Width = 1215
End
Begin VB.CommandButton Command2
Caption = "-"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 1
Left = 240
TabIndex = 19
Top = 960
Width = 1215
End
Begin VB.CommandButton Command2
Caption = "+"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 0
Left = 240
TabIndex = 18
Top = 360
Width = 1215
End
End
Begin VB.Frame Frame1
Caption = "数字键"
Height = 2775
Left = 600
TabIndex = 4
Top = 3720
Width = 3015
Begin VB.CommandButton Command1
Caption = "="
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 11
Left = 2160
TabIndex = 16
Top = 2160
Width = 615
End
Begin VB.CommandButton Command1
Caption = "."
BeginProperty Font
Name = "宋体"
Size = 24
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 10
Left = 240
TabIndex = 15
Top = 2160
Width = 615
End
Begin VB.CommandButton Command1
Caption = "9"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 9
Left = 2160
TabIndex = 14
Top = 1560
Width = 615
End
Begin VB.CommandButton Command1
Caption = "8"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 8
Left = 1200
TabIndex = 13
Top = 1560
Width = 615
End
Begin VB.CommandButton Command1
Caption = "7"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 7
Left = 240
TabIndex = 12
Top = 1560
Width = 615
End
Begin VB.CommandButton Command1
Caption = "6"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 6
Left = 2160
TabIndex = 11
Top = 960
Width = 615
End
Begin VB.CommandButton Command1
Caption = "5"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 5
Left = 1200
TabIndex = 10
Top = 960
Width = 615
End
Begin VB.CommandButton Command1
Caption = "4"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 4
Left = 240
TabIndex = 9
Top = 960
Width = 615
End
Begin VB.CommandButton Command1
Caption = "3"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 3
Left = 2160
TabIndex = 8
Top = 360
Width = 615
End
Begin VB.CommandButton Command1
Caption = "2"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 2
Left = 1200
TabIndex = 7
Top = 360
Width = 615
End
Begin VB.CommandButton Command1
Caption = "1"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 1
Left = 240
TabIndex = 6
Top = 360
Width = 615
End
Begin VB.CommandButton Command1
Caption = "0"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 0
Left = 1200
TabIndex = 5
Top = 2160
Width = 615
End
End
Begin VB.TextBox resultnum
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1440
Locked = -1 'True
TabIndex = 3
Top = 2760
Width = 2175
End
Begin VB.TextBox expression
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1935
Left = 600
Locked = -1 'True
MultiLine = -1 'True
TabIndex = 1
Top = 600
Width = 5175
End
Begin VB.Label Label2
Caption = "计算结果:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 120
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -