VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "VB6 例10-5 Autosize属性与Stretch属性"
   ClientHeight    =   1920
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4890
   LinkTopic       =   "Form1"
   ScaleHeight     =   1920
   ScaleWidth      =   4890
   StartUpPosition =   3  '窗口缺省
   Begin VB.CheckBox Check2 
      Caption         =   "Stretch"
      Height          =   375
      Left            =   3540
      TabIndex        =   2
      Top             =   720
      Width           =   1215
   End
   Begin VB.CheckBox Check1 
      Caption         =   "AutoSize"
      Height          =   375
      Left            =   3540
      TabIndex        =   1
      Top             =   240
      Width           =   1095
   End
   Begin VB.PictureBox Picture1 
      Height          =   1455
      Left            =   60
      ScaleHeight     =   1395
      ScaleWidth      =   1395
      TabIndex        =   0
      Top             =   60
      Width           =   1455
   End
   Begin VB.Image Image1 
      BorderStyle     =   1  'Fixed Single
      Height          =   1455
      Left            =   1620
      Top             =   60
      Width           =   1455
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Check1_Click()
    Picture1.Height = 1445
    Picture1.Width = 1455
    Picture1.AutoSize = Check1.Value
End Sub

Private Sub Check2_Click()
    Image1.Height = 1445
    Image1.Width = 1455
    Image1.Stretch = Check2.Value
End Sub

Private Sub Form_Load()
    Picture1.Picture = LoadPicture("winupd.ico")
    Image1.Picture = Picture1.Picture
End Sub
