VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "控件数组"
   ClientHeight    =   2625
   ClientLeft      =   1095
   ClientTop       =   1515
   ClientWidth     =   3930
   LinkTopic       =   "Form1"
   PaletteMode     =   1  'UseZOrder
   ScaleHeight     =   2625
   ScaleWidth      =   3930
   Begin VB.PictureBox Picture1 
      Height          =   1515
      Left            =   1560
      ScaleHeight     =   1455
      ScaleWidth      =   1755
      TabIndex        =   4
      Top             =   480
      Width           =   1815
   End
   Begin VB.CommandButton Command1 
      Caption         =   "结束"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   9.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Index           =   3
      Left            =   480
      TabIndex        =   3
      Top             =   2040
      Width           =   855
   End
   Begin VB.CommandButton Command1 
      Caption         =   "圆"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   9.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Index           =   2
      Left            =   480
      TabIndex        =   2
      Top             =   1440
      Width           =   855
   End
   Begin VB.CommandButton Command1 
      Caption         =   "矩形"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   9.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Index           =   1
      Left            =   480
      TabIndex        =   1
      Top             =   840
      Width           =   855
   End
   Begin VB.CommandButton Command1 
      Caption         =   "直线"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   9.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Index           =   0
      Left            =   480
      TabIndex        =   0
      Top             =   240
      Width           =   855
   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(Index As Integer)
  Picture1.Cls
  Picture1.FillStyle = 6
  Select Case Index
    Case 0
      Picture1.Print "画直线"
      Picture1.Line (2, 2)-(7, 7)
    Case 1
      Picture1.Print "画矩形"
      Picture1.Line (2, 2)-(7, 7), , BF
    Case 2
      Picture1.Print "画圆"
      Picture1.Circle (4.5, 4.5), 3.5, , , , 1
    Case Else
      End
    End Select
End Sub

Private Sub Form_Load()
    Picture1.Scale (0, 0)-(10, 10)   '设置坐标系
End Sub

