VERSION 5.00
Begin VB.Form Form1 
   AutoRedraw      =   -1  'True
   Caption         =   "Form1"
   ClientHeight    =   5400
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   7500
   LinkTopic       =   "Form1"
   ScaleHeight     =   5400
   ScaleWidth      =   7500
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton Command2 
      Caption         =   "Пуск"
      Height          =   495
      Left            =   4800
      TabIndex        =   1
      Top             =   4800
      Width           =   1215
   End
   Begin VB.CommandButton Command1 
      Caption         =   "Выход"
      Height          =   495
      Left            =   6120
      TabIndex        =   0
      Top             =   4800
      Width           =   1215
   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()
End
End Sub

Private Sub Command2_Click()
Form1.Cls
For i = 10 To 5000 Step 10
 Form1.PSet (20, 20), 255
 Form1.Line Step(0, 0)-Step(50 + i, 50 + i), 255, BF

Next
End Sub

Private Sub Form_Load()
Form1.Scale (0, 0)-(Width, Height)
End Sub

Private Sub Form_Resize()
Command2.Top = ScaleHeight - 1400
Command2.Left = ScaleWidth - 1550
Command1.Top = ScaleHeight - 700
Command1.Left = ScaleWidth - 1550
Form1.Scale (0, 0)-(Width, Height)

End Sub
