📄 daoju.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 4575
ClientLeft = 60
ClientTop = 450
ClientWidth = 7335
LinkTopic = "Form1"
ScaleHeight = 4575
ScaleWidth = 7335
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton Command1
Caption = "Start"
Height = 615
Left = 4680
TabIndex = 12
Top = 1560
Width = 1935
End
Begin VB.TextBox Text6
Height = 375
Left = 1200
TabIndex = 11
Text = "10"
Top = 3360
Width = 2055
End
Begin VB.TextBox Text5
Height = 375
Left = 1200
TabIndex = 10
Text = "0.25"
Top = 2760
Width = 2055
End
Begin VB.TextBox Text4
Height = 375
Left = 1200
TabIndex = 9
Text = "1"
Top = 2160
Width = 2055
End
Begin VB.TextBox Text3
Height = 375
Left = 1200
TabIndex = 8
Text = "10"
Top = 1560
Width = 2055
End
Begin VB.TextBox Text2
Height = 375
Left = 1200
TabIndex = 7
Text = "0"
Top = 960
Width = 2055
End
Begin VB.TextBox Text1
Height = 375
Left = 1200
TabIndex = 6
Text = "20"
Top = 360
Width = 2055
End
Begin VB.Label Label6
Caption = "b"
Height = 255
Left = 720
TabIndex = 5
Top = 3480
Width = 255
End
Begin VB.Label Label5
Caption = "c"
Height = 255
Left = 720
TabIndex = 4
Top = 2880
Width = 255
End
Begin VB.Label Label4
Caption = "ha"
Height = 375
Left = 720
TabIndex = 3
Top = 2280
Width = 255
End
Begin VB.Label Label3
Caption = "m"
Height = 255
Left = 720
TabIndex = 2
Top = 1680
Width = 255
End
Begin VB.Label Label2
Caption = "x"
Height = 255
Left = 720
TabIndex = 1
Top = 960
Width = 255
End
Begin VB.Label Label1
Caption = "z"
Height = 255
Left = 720
TabIndex = 0
Top = 480
Width = 255
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private z As Double
Private x As Double
Private m As Double
Private ha As Double
Private c As Double
Private b As Double
Private theDaoju As myDaoju.Daoju
Private Sub Command1_Click()
Dim y As Variant
If theDaoju Is Nothing Then Exit Sub
On Error GoTo Handle_Error
Call theDaoju.Daoju_gonge(z, x, m, ha, c, b)
Exit Sub
Handle_Error:
MsgBox (Err.Description)
End Sub
Private Sub Form_Load()
On Error GoTo Handle_Error
Set theDaoju = New myDaoju.Daoju
z = 20
x = 0
m = 10
ha = 1
c = 0.25
b = 10
Exit Sub
Handle_Error:
MsgBox (Err.Description)
End Sub
Private Sub Text1_Change()
'This function is called when ever the contents of the
'Text box change. Sets the current value of Size.
On Error Resume Next
z = CDbl(Text1.Text)
If Err <> 0 Then
z = 20
End If
End Sub
Private Sub Text2_Change()
On Error Resume Next
x = CDbl(Text2.Text)
If Err <> 0 Then
x = 0
End If
End Sub
Private Sub Text3_Change()
On Error Resume Next
m = CDbl(Text3.Text)
If Err <> 0 Then
m = 10
End If
End Sub
Private Sub Text4_Change()
On Error Resume Next
ha = CDbl(Text4.Text)
If Err <> 0 Then
ha = 1
End If
End Sub
Private Sub Text5_Change()
On Error Resume Next
c = CDbl(Text5.Text)
If Err <> 0 Then
c = 0.25
End If
End Sub
Private Sub Text6_Change()
On Error Resume Next
b = CDbl(Text6.Text)
If Err <> 0 Then
b = 10
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -