📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3195
ClientLeft = 3900
ClientTop = 3090
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4680
Begin VB.CommandButton Command3
Caption = "&About"
Height = 615
Left = 3240
Style = 1 'Graphical
TabIndex = 4
Top = 2520
Width = 1335
End
Begin VB.CommandButton Command2
Caption = "&End"
Height = 615
Left = 3240
Style = 1 'Graphical
TabIndex = 3
Top = 1800
Width = 1335
End
Begin VB.CommandButton Command1
Caption = "O&k"
Height = 615
Left = 3240
Style = 1 'Graphical
TabIndex = 2
Top = 1080
Width = 1335
End
Begin VB.TextBox Text1
Height = 975
Left = 3240
TabIndex = 1
Top = 0
Width = 1335
End
Begin VB.Label Label1
Caption = $"Form1.frx":0000
BeginProperty Font
Name = "楷体_GB2312"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 3255
Left = 0
TabIndex = 0
Top = 0
Width = 3135
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim t1, t2 As Date
Dim x0 As Double
t1 = Time
k = 1
x0 = CInt(Text1.Text)
s(0) = x0
Do
s(k) = s(k - 1) - f(s(k - 1)) / df(s(k - 1))
k = k + 1
Loop While (Abs(s(k - 1) - s(k - 2)) >= Pre And k <= Max)
Form1.Hide
Form2.Show
End Sub
Private Sub Command2_Click()
End
End Sub
Private Sub Command3_Click()
temp = MsgBox("理学院一队:王元", 64, "关于:作者")
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -