📄 form4.frm
字号:
VERSION 5.00
Begin VB.Form Form4
Caption = "轧制型材连同带板的剖面模数计算"
ClientHeight = 7140
ClientLeft = 60
ClientTop = 450
ClientWidth = 10470
LinkTopic = "Form4"
ScaleHeight = 7140
ScaleWidth = 10470
StartUpPosition = 3 'Windows Default
Begin VB.TextBox Text9
Height = 650
Left = 1680
TabIndex = 19
Top = 1920
Width = 1500
End
Begin VB.PictureBox Picture1
Height = 2895
Left = 4800
Picture = "Form4.frx":0000
ScaleHeight = 2835
ScaleWidth = 3795
TabIndex = 17
Top = 3360
Width = 3855
End
Begin VB.CommandButton Command4
Caption = "退出"
Height = 615
Left = 5760
TabIndex = 16
Top = 6360
Width = 2175
End
Begin VB.TextBox Text8
Height = 615
Left = 2520
TabIndex = 15
Top = 5520
Width = 1500
End
Begin VB.TextBox Text7
Height = 615
Left = 2520
TabIndex = 14
Top = 4560
Width = 1500
End
Begin VB.TextBox Text6
Height = 615
Left = 2520
TabIndex = 13
Top = 3600
Width = 1500
End
Begin VB.TextBox Text5
Height = 650
Left = 4800
TabIndex = 12
Top = 1920
Width = 1500
End
Begin VB.TextBox Text4
Height = 650
Left = 7800
TabIndex = 11
Top = 1920
Width = 1500
End
Begin VB.TextBox Text3
Height = 650
Left = 7800
TabIndex = 10
Top = 480
Width = 1500
End
Begin VB.TextBox Text2
Height = 650
Left = 4680
TabIndex = 9
Top = 480
Width = 1500
End
Begin VB.TextBox Text1
Height = 650
Left = 1680
TabIndex = 8
Top = 480
Width = 1500
End
Begin VB.CommandButton Command3
Caption = "连同带板的剖面模数(CM^3)"
Height = 615
Left = 240
TabIndex = 7
Top = 5520
Width = 2175
End
Begin VB.CommandButton Command2
Caption = "连同带板的惯性矩 (CM^4)"
Height = 615
Left = 240
TabIndex = 6
Top = 4560
Width = 2175
End
Begin VB.CommandButton Command1
Caption = "连带板的中和轴的位置(CM)"
Height = 615
Left = 240
TabIndex = 5
Top = 3600
Width = 2175
End
Begin VB.Label Label6
Caption = "型材高度(CM)"
Height = 495
Left = 240
TabIndex = 18
Top = 2040
Width = 1215
End
Begin VB.Label Label5
Caption = "带板宽度(CM)"
Height = 495
Left = 3360
TabIndex = 4
Top = 1920
Width = 1215
End
Begin VB.Label Label4
Caption = "带板厚度(CM)"
Height = 495
Left = 6480
TabIndex = 3
Top = 1920
Width = 1215
End
Begin VB.Label Label3
Caption = "型材的中和轴位置(CM)"
Height = 495
Left = 6360
TabIndex = 2
Top = 600
Width = 1215
End
Begin VB.Label Label2
Caption = "型材自身惯性矩(CM^4)"
Height = 615
Left = 3240
TabIndex = 1
Top = 600
Width = 1455
End
Begin VB.Label Label1
Caption = "型材的剖面积 (CM^2)"
Height = 735
Left = 360
TabIndex = 0
Top = 600
Width = 1455
End
End
Attribute VB_Name = "Form4"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim A1 As Single, Ix1 As Single, y1 As Single, t As Single, h As Single, h1 As Single, y As Single, W As Single, I As Single
Private Sub Command1_Click()
On Error GoTo OOPS
A1 = Val(Text1.Text)
Ix1 = Val(Text2.Text)
y1 = Val(Text3.Text)
t = Val(Text4.Text)
h = Val(Text5.Text)
h1 = Val(Text9.Text)
y = (A1 * y1 - 0.5 * t * h * t) / (A1 + t * h)
Text6.Text = y
OOPS:
I = MsgBox("输入数据不合理,建议检查输入数据!", 256 + 64)
End Sub
Private Sub Command2_Click()
On Error GoTo OOPS
I = Ix1 + (y1 - y) ^ 2 * A1 + h * t ^ 3 / 12 + (0.5 * t + y) ^ 2 * t * h
Text7.Text = I
OOPS:
I = MsgBox("输入数据不合理,建议检查输入数据!", 256 + 64)
End Sub
Private Sub Command3_Click()
On Error GoTo OOPS
W = I / (h1 - y)
Text8.Text = W
OOPS:
I = MsgBox("输入数据不合理,建议检查输入数据!", 256 + 64)
End Sub
Private Sub Command4_Click()
Form4.Hide
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -