📄 form1.dob
字号:
VERSION 5.00
Begin VB.UserDocument Form1
ClientHeight = 3195
ClientLeft = 45
ClientTop = 330
ClientWidth = 4680
HScrollSmallChange= 225
ScaleHeight = 3195
ScaleWidth = 4680
VScrollSmallChange= 225
Begin VB.CommandButton Command3
Caption = "退 出"
Height = 495
Left = 3120
TabIndex = 7
Top = 2520
Width = 1095
End
Begin VB.CommandButton Command2
Caption = "相 加"
Height = 495
Left = 1680
TabIndex = 0
Top = 2520
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "清 除"
Height = 495
Left = 240
TabIndex = 6
Top = 2520
Width = 1095
End
Begin VB.TextBox Text3
Height = 375
Left = 1200
TabIndex = 5
Top = 1920
Width = 3015
End
Begin VB.TextBox Text2
Height = 375
Left = 1200
TabIndex = 4
Top = 1320
Width = 3015
End
Begin VB.TextBox Text1
Alignment = 1 'Right Justify
BackColor = &H00FF8080&
BeginProperty Font
Name = "黑体"
Size = 36
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FF00&
Height = 855
Left = 120
TabIndex = 1
Top = 240
Width = 4455
End
Begin VB.Label Label2
Caption = "加数二"
Height = 375
Left = 360
TabIndex = 3
Top = 1920
Width = 735
End
Begin VB.Label Label1
Caption = "加数一"
Height = 375
Left = 360
TabIndex = 2
Top = 1320
Width = 735
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
Dim num1, num2, sum As Double
Private Sub UserDocument_Initialize()
Call Form_Load
End Sub
Private Sub Command1_Click()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
num1 = 0
num2 = 0
sum = 0
End Sub
Private Sub Command2_Click()
num1 = CDbl(Text2.Text)
num2 = CDbl(Text3.Text)
sum = num1 + num2
Text1.Text = CStr(sum)
End Sub
Private Sub Command3_Click()
'[AXDW] 下列行被 ActiveX 文档移植向导注释掉。
'End
End Sub
Private Sub Form_Load()
'[AXDW] 下列行被 ActiveX 文档移植向导注释掉。
'Form1.Width = 4800
'[AXDW] 下列行被 ActiveX 文档移植向导注释掉。
'Form1.Height = 3600
'[AXDW] 下列行被 ActiveX 文档移植向导注释掉。
'Form1.BorderStyle = 1
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -