?? 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 + -