📄 form3.frm
字号:
VERSION 5.00
Begin VB.Form Form3
Caption = "T型材剖面膜塑计算"
ClientHeight = 6180
ClientLeft = 60
ClientTop = 450
ClientWidth = 11175
LinkTopic = "Form3"
ScaleHeight = 6180
ScaleWidth = 11175
StartUpPosition = 3 'Windows Default
Begin VB.PictureBox Picture1
Height = 2895
Left = 5640
Picture = "Form3.frx":0000
ScaleHeight = 2835
ScaleWidth = 3315
TabIndex = 17
Top = 2760
Width = 3375
End
Begin VB.CommandButton Command3
Caption = "退出"
Height = 615
Left = 120
TabIndex = 16
Top = 4920
Width = 2895
End
Begin VB.CommandButton Command2
Caption = "计算T型材连同带板的惯性矩I (CM^4)"
Height = 650
Left = 120
TabIndex = 15
Top = 3960
Width = 2895
End
Begin VB.CommandButton Command1
Caption = "计算T型材连同带板的剖面模数W (CM^3)"
Height = 650
Left = 120
TabIndex = 14
Top = 2760
Width = 3015
End
Begin VB.TextBox Text8
Height = 650
Left = 3240
TabIndex = 13
Top = 3960
Width = 1500
End
Begin VB.TextBox Text7
Height = 650
Left = 3240
TabIndex = 12
Top = 2760
Width = 1500
End
Begin VB.TextBox Text6
Height = 650
Left = 9120
TabIndex = 11
Top = 1080
Width = 1500
End
Begin VB.TextBox Text5
Height = 650
Left = 9120
TabIndex = 10
Top = 360
Width = 1500
End
Begin VB.TextBox Text4
Height = 650
Left = 5760
TabIndex = 9
Top = 1080
Width = 1500
End
Begin VB.TextBox Text3
Height = 650
Left = 5760
TabIndex = 8
Top = 360
Width = 1500
End
Begin VB.TextBox Text2
Height = 650
Left = 1800
TabIndex = 7
Top = 1080
Width = 1500
End
Begin VB.TextBox Text1
Height = 650
Left = 1800
TabIndex = 6
Top = 360
Width = 1500
End
Begin VB.Label Label6
Caption = "腹板高度为(CM)"
Height = 495
Left = 7440
TabIndex = 5
Top = 1200
Width = 1455
End
Begin VB.Label Label5
Caption = "腹板厚度为(CM)"
Height = 495
Left = 7440
TabIndex = 4
Top = 480
Width = 1455
End
Begin VB.Label Label4
Caption = "带板宽度为(CM)"
Height = 495
Left = 3840
TabIndex = 3
Top = 1200
Width = 1455
End
Begin VB.Label Label3
Caption = "带板厚度为(CM)"
Height = 495
Left = 3840
TabIndex = 2
Top = 480
Width = 1455
End
Begin VB.Label Label2
Caption = "面板宽度为(CM)"
Height = 495
Left = 120
TabIndex = 1
Top = 1200
Width = 1575
End
Begin VB.Label Label1
Caption = "面板厚度为(CM)"
Height = 495
Left = 120
TabIndex = 0
Top = 360
Width = 1455
End
End
Attribute VB_Name = "Form3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim m1 As Single, m2 As Single, d1 As Single, d2 As Single, f1 As Single, f2 As Single, W As Single, I As Single, a As Single, aa As Single
Private Sub Command1_Click()
On Error GoTo OOPS
m1 = Val(Text1.Text)
m2 = Val(Text2.Text)
d1 = Val(Text3.Text)
d2 = Val(Text4.Text)
f1 = Val(Text5.Text)
f2 = Val(Text6.Text)
a = m1 * m2
aa = d1 * d2
If aa < a Then aa = a
If aa >= a Then aa = aa
W = f2 * (a + f1 * f2 / 6 * (1 + 2 * (aa - a) / (2 * d1 * d2 + f1 * f2)))
Text7.Text = W
OOPS:
I = MsgBox("输入数据不合理,建议检查输入数据!", 256 + 64)
End Sub
Private Sub Command2_Click()
On Error GoTo OOPS
I = f2 ^ 2 * (f1 * f2 / 3 + (aa * a - 0.25 * (f1 * f2) ^ 2) / (aa + a + f1 * f2))
Text8.Text = I
OOPS:
I = MsgBox("输入数据不合理,建议检查输入数据!", 256 + 64)
End Sub
Private Sub Command3_Click()
Form3.Hide
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -