VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3900
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   5370
   LinkTopic       =   "Form1"
   ScaleHeight     =   3900
   ScaleWidth      =   5370
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton Command2 
      Caption         =   "Очистка"
      Height          =   615
      Left            =   1440
      TabIndex        =   2
      Top             =   3120
      Width           =   975
   End
   Begin VB.CommandButton Command1 
      Caption         =   "Command1"
      Height          =   615
      Left            =   240
      TabIndex        =   1
      Top             =   3120
      Width           =   975
   End
   Begin VB.PictureBox picGraph 
      BackColor       =   &H00FFFFFF&
      Height          =   2895
      Left            =   120
      ScaleHeight     =   2835
      ScaleWidth      =   4515
      TabIndex        =   0
      Top             =   120
      Width           =   4575
   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()
picGraph.Scale (-10, 2)-(10, -2)
For i = -10 To 10
picGraph.Line (i, 2)-(i, -2), vbCyan
Next
For i = -2 To 2 Step 0.2
picGraph.Line (-10, i)-(10, i), vbCyan
Next

For x = -10 To 10 Step 0.01
picGraph.PSet (x, x ^ 0), vbRed
Next
For x = -10 To 10 Step 0.01
picGraph.PSet (x, Cos(x))
Next



picGraph.Line (-10, 0)-(10, 0)

For i = -10 To 10
picGraph.PSet (i, 0)
picGraph.Print i

Next
picGraph.Line (0, 2)-(0, -2)

For i = -2 To 2
picGraph.PSet (0, i)
picGraph.Print i
Next




End Sub

Private Sub Command2_Click()
picGraph.Cls
End Sub
