practice8_41.frm
来自「深圳大学的vb上机与教学的课件」· FRM 代码 · 共 94 行
FRM
94 行
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 2265
ClientLeft = 60
ClientTop = 345
ClientWidth = 2970
LinkTopic = "Form1"
ScaleHeight = 2265
ScaleWidth = 2970
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command2
Caption = "打开排序窗口"
Height = 375
Left = 1200
TabIndex = 7
Top = 1680
Width = 1335
End
Begin VB.CommandButton Command1
Caption = "计算"
Height = 375
Left = 360
TabIndex = 6
Top = 1680
Width = 735
End
Begin VB.TextBox Text3
Height = 375
Left = 1320
TabIndex = 5
Top = 1080
Width = 1215
End
Begin VB.TextBox Text2
Height = 375
Left = 1320
TabIndex = 3
Top = 600
Width = 1215
End
Begin VB.TextBox Text1
Height = 375
Left = 1320
TabIndex = 1
Top = 120
Width = 1215
End
Begin VB.OLE OLE1
BackStyle = 0 'Transparent
BorderStyle = 0 'None
Class = "Equation.3"
Height = 375
Left = 210
OleObjectBlob = "practice8_41.frx":0000
SizeMode = 1 'Stretch
TabIndex = 4
Top = 1080
Width = 1110
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "请输入B:"
Height = 180
Left = 480
TabIndex = 2
Top = 720
Width = 810
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "请输入A:"
Height = 180
Left = 480
TabIndex = 0
Top = 240
Width = 810
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
a = Val(Text1.Text)
b = Val(Text2.Text)
Text3.Text = Format(f(a, b), "0.0000")
End Sub
Private Sub Command2_Click()
Form2.Show
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?