practice11_3.frm
来自「深圳大学的vb上机与教学的课件」· FRM 代码 · 共 34 行
FRM
34 行
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 2700
ClientLeft = 60
ClientTop = 345
ClientWidth = 5655
LinkTopic = "Form1"
ScaleHeight = 2700
ScaleWidth = 5655
StartUpPosition = 2 '屏幕中心
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Click()
DrawWidth = 2
Scale (-360, 1)-(360, -1)
For x = -360 To 360
y = Sin(x * 3.1415926 / 180)
PSet (x, y), vbRed
Next x
DrawWidth = 3
Line (-360, 0)-(360, 0), vbBlack
Line (0, 1)-(0, -1), vbBlack
DrawWidth = 1
For i = -360 To 360 Step 30
Line (i, 0.05)-(i, 0) '画垂直刻度
Next i
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?