📄 zhengxian.frm
字号:
VERSION 5.00
Begin VB.Form Form1
AutoRedraw = -1 'True
Caption = "Form1"
ClientHeight = 7710
ClientLeft = 60
ClientTop = 345
ClientWidth = 10365
DrawWidth = 5
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form1"
ScaleHeight = 7710
ScaleWidth = 10365
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command4
Caption = "坐标轴"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 8400
TabIndex = 4
Top = 1560
Width = 1335
End
Begin VB.CommandButton Command3
Caption = "退 出"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 8400
TabIndex = 3
Top = 4800
Width = 1335
End
Begin VB.CommandButton Command2
Caption = "余 弦"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 8400
TabIndex = 2
Top = 3720
Width = 1335
End
Begin VB.CommandButton Command1
Caption = "正 弦"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 8400
TabIndex = 1
Top = 2640
Width = 1335
End
Begin VB.PictureBox Picture1
AutoRedraw = -1 'True
Height = 6375
Left = 720
ScaleHeight = 6315
ScaleWidth = 7035
TabIndex = 0
Top = 480
Width = 7095
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Const pi As Single = 3.1415926
Private Sub Command1_Click()
Picture1.Cls
Command4_Click
Picture1.ForeColor = vbBlue
For i = -2 * pi To 2 * pi Step 0.001
Picture1.PSet (i, Sin(i))
Next i
Picture1.CurrentX = -6
Picture1.CurrentY = 2
Picture1.Print "正弦曲线"
End Sub
Private Sub Command2_Click()
Picture1.Cls
Command4_Click
Picture1.ForeColor = vbRed
For i = -2 * pi To 2 * pi Step 0.001
Picture1.PSet (i, Cos(i))
Next i
Picture1.CurrentX = -6
Picture1.CurrentY = 2
Picture1.Print "余弦曲线"
End Sub
Private Sub Command4_Click()
Picture1.Cls
Picture1.DrawWidth = 4
Picture1.ForeColor = vbBlack
Picture1.Scale (-2 * pi, 2)-(2 * pi, -2) '绘制X,Y坐标
Picture1.Line (0, -2)-(0, 2) '绘制Y轴
Picture1.Line (-2 * pi, 0)-(2 * pi, 0) '绘制X轴
Picture1.PSet (0, 0), vbRed
Picture1.CurrentX = 0.3
Picture1.CurrentY = -0.05
Picture1.FontSize = 20
Picture1.Print "0"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -