📄 例7.10c.frm
字号:
VERSION 5.00
Begin VB.Form Form3
Caption = "计算"
ClientHeight = 1950
ClientLeft = 60
ClientTop = 450
ClientWidth = 4365
LinkTopic = "Form3"
ScaleHeight = 1950
ScaleWidth = 4365
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox Text31
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1560
TabIndex = 4
Top = 360
Width = 1695
End
Begin VB.CommandButton Command32
Caption = "乘法"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1680
TabIndex = 2
Top = 1200
Width = 975
End
Begin VB.CommandButton Command31
Caption = "加法"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 360
TabIndex = 1
Top = 1200
Width = 975
End
Begin VB.CommandButton Command33
Caption = "返回"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
Left = 3000
TabIndex = 0
Top = 1200
Width = 975
End
Begin VB.Label Label1
Caption = "计算结果"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 480
TabIndex = 3
Top = 480
Width = 975
End
End
Attribute VB_Name = "Form3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command31_Click() '“计算”窗体的“加法”按钮
Text31.Text = X + Y
End Sub
Private Sub Command32_Click() '“计算”窗体的“乘法”按钮
Text31.Text = X * Y
End Sub
Private Sub Command33_Click() '“计算”窗体的“返回”按钮
Form3.Hide '隐藏“计算”窗体
Form1.Show '显示主窗体
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -