📄 form17.frm
字号:
VERSION 5.00
Begin VB.Form Form17
BackColor = &H00FFFFFF&
Caption = "由传动功率计算转矩界面"
ClientHeight = 3405
ClientLeft = 60
ClientTop = 345
ClientWidth = 5085
LinkTopic = "Form17"
ScaleHeight = 3405
ScaleWidth = 5085
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command2
Caption = "Exit"
Height = 495
Left = 2880
TabIndex = 3
Top = 2400
Width = 975
End
Begin VB.CommandButton Command1
Caption = "计算"
Height = 495
Left = 600
TabIndex = 2
Top = 2400
Width = 975
End
Begin VB.TextBox Text2
Appearance = 0 'Flat
BackColor = &H80000018&
Height = 495
Left = 2280
TabIndex = 1
Top = 1440
Width = 1575
End
Begin VB.TextBox Text1
Appearance = 0 'Flat
BackColor = &H80000018&
Height = 495
Left = 2280
TabIndex = 0
Top = 720
Width = 1575
End
Begin VB.Label Label5
BackColor = &H00FFFFFF&
Caption = "r/min"
Height = 375
Left = 3960
TabIndex = 8
Top = 1560
Width = 495
End
Begin VB.Label Label4
AutoSize = -1 'True
BackColor = &H00FFFFFF&
Caption = "小齿轮转速:n ="
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 360
TabIndex = 7
Top = 1560
Width = 1800
End
Begin VB.Label Label3
AutoSize = -1 'True
BackColor = &H00FFFFFF&
Caption = "KW"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 3960
TabIndex = 6
Top = 840
Width = 240
End
Begin VB.Label Label2
AutoSize = -1 'True
BackColor = &H00FFFFFF&
Caption = "功 率:P ="
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 360
TabIndex = 5
Top = 840
Width = 1800
End
Begin VB.Label Label1
AutoSize = -1 'True
BackColor = &H00FFFFFF&
Caption = "由齿轮的传动功率计算其转矩:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 240
TabIndex = 4
Top = 240
Width = 3360
End
End
Attribute VB_Name = "Form17"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim p As Single
Dim n As Single
Dim v As Single
Dim t As Single
Dim m As Single
Dim z1 As Single
m = Form9.Text3.Text
z1 = Form9.Text5.Text
p = Text1.Text
n = Text2.Text
t = 95.5 * 10 ^ 5 * p / n
v = n * 3.1415926 * m * z1 / 60 / 1000
Form9.Text1.Text = t
Form9.Text6.Text = v
Me.Hide
Form9.Show
End Sub
Private Sub Command2_Click()
Unload Me
Form9.Show
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -