📄 计算器.frm
字号:
VERSION 5.00
Begin VB.Form Form1
AutoRedraw = -1 'True
Caption = "计算器"
ClientHeight = 3330
ClientLeft = 165
ClientTop = 855
ClientWidth = 4155
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form1"
ScaleHeight = 3330
ScaleWidth = 4155
StartUpPosition = 3 '窗口缺省
Begin VB.Timer timTimeShow
Interval = 1000
Left = 1800
Top = 3000
End
Begin VB.CommandButton cmdresult
Caption = "="
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 18
Left = 3480
TabIndex = 27
Top = 2520
Width = 615
End
Begin VB.CommandButton cmdaccount
Caption = "1/x"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 17
Left = 3480
TabIndex = 26
Top = 2040
Width = 615
End
Begin VB.CommandButton cmdaccount
Caption = "%"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 16
Left = 3480
TabIndex = 25
Top = 1560
Width = 615
End
Begin VB.CommandButton cmdaccount
Caption = "sqrt"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 15
Left = 3480
TabIndex = 24
Top = 1080
Width = 615
End
Begin VB.CommandButton cmdaccount
Caption = "+"
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 14
Left = 2880
TabIndex = 23
Top = 2520
Width = 495
End
Begin VB.CommandButton cmdaccount
Caption = "-"
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 13
Left = 2880
MaskColor = &H00C0FFFF&
TabIndex = 22
Top = 2040
Width = 495
End
Begin VB.CommandButton cmdaccount
Caption = "*"
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 12
Left = 2880
TabIndex = 21
Top = 1560
Width = 495
End
Begin VB.CommandButton cmdaccount
Caption = "/"
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 11
Left = 2880
TabIndex = 20
Top = 1080
Width = 495
End
Begin VB.CommandButton Command1
Caption = "."
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 10
Left = 2280
TabIndex = 19
Top = 2520
Width = 495
End
Begin VB.CommandButton cmddigit
BackColor = &H8000000B&
Caption = "9"
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 9
Left = 2280
MaskColor = &H8000000A&
TabIndex = 18
Top = 1080
Width = 495
End
Begin VB.CommandButton cmddigit
Caption = "8"
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 8
Left = 1680
TabIndex = 17
Top = 1080
Width = 495
End
Begin VB.CommandButton cmddigit
Caption = "7"
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 7
Left = 1080
TabIndex = 16
Top = 1080
Width = 495
End
Begin VB.CommandButton cmddigit
Caption = "6"
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 6
Left = 2280
TabIndex = 15
Top = 1560
Width = 495
End
Begin VB.CommandButton cmddigit
Caption = "5"
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 5
Left = 1680
TabIndex = 14
Top = 1560
Width = 495
End
Begin VB.CommandButton cmddigit
Caption = "4"
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 4
Left = 1080
TabIndex = 13
Top = 1560
Width = 495
End
Begin VB.CommandButton cmddigit
Caption = "3"
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 3
Left = 2280
TabIndex = 12
Top = 2040
Width = 495
End
Begin VB.CommandButton cmddigit
Caption = "2"
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 2
Left = 1680
TabIndex = 11
Top = 2040
Width = 495
End
Begin VB.CommandButton cmddigit
Caption = "1"
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 1
Left = 1080
TabIndex = 10
Top = 2040
Width = 495
End
Begin VB.CommandButton cmddigit
Caption = "0"
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 0
Left = 1080
TabIndex = 9
Top = 2520
Width = 495
End
Begin VB.CommandButton cmddigit
BackColor = &H0080FFFF&
Caption = "+/-"
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -