VERSION 5.00
Begin VB.Form Form1 
   BackColor       =   &H00FFFFFF&
   Caption         =   "Birthday Present"
   ClientHeight    =   6075
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   7455
   LinkTopic       =   "Form1"
   ScaleHeight     =   6075
   ScaleWidth      =   7455
   StartUpPosition =   3  '窗口缺省
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   2400
      TabIndex        =   5
      Text            =   "购物结果提示"
      Top             =   5160
      Width           =   2535
   End
   Begin VB.CommandButton Command1 
      Caption         =   "价格核算"
      Height          =   495
      Left            =   2760
      TabIndex        =   4
      Top             =   4200
      Width           =   1695
   End
   Begin VB.ComboBox Combo2 
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   330
      ItemData        =   "购物.frx":0000
      Left            =   2760
      List            =   "购物.frx":000D
      TabIndex        =   2
      Text            =   "裤子（三款）"
      Top             =   960
      Width           =   1695
   End
   Begin VB.ComboBox Combo1 
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   330
      ItemData        =   "购物.frx":0029
      Left            =   360
      List            =   "购物.frx":0033
      TabIndex        =   1
      Text            =   "上衣(二款）"
      Top             =   960
      Width           =   1575
   End
   Begin VB.ComboBox Combo3 
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   330
      ItemData        =   "购物.frx":0047
      Left            =   5400
      List            =   "购物.frx":0057
      TabIndex        =   0
      Text            =   "鞋子（四款）"
      Top             =   960
      Width           =   1695
   End
   Begin VB.Image Image1 
      BorderStyle     =   1  'Fixed Single
      Height          =   2055
      Left            =   120
      Picture         =   "购物.frx":007B
      Stretch         =   -1  'True
      Top             =   1800
      Width           =   2055
   End
   Begin VB.Image Image2 
      BorderStyle     =   1  'Fixed Single
      Height          =   2055
      Left            =   2580
      Picture         =   "购物.frx":4458
      Stretch         =   -1  'True
      Top             =   1800
      Width           =   2055
   End
   Begin VB.Image Image3 
      BorderStyle     =   1  'Fixed Single
      Height          =   2055
      Left            =   5280
      Picture         =   "购物.frx":8AF5
      Stretch         =   -1  'True
      Top             =   1800
      Width           =   2055
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackColor       =   &H00FFFFFF&
      Caption         =   "爱心礼物"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   15.75
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   315
      Left            =   2880
      TabIndex        =   3
      Top             =   240
      Width           =   1380
   End
   Begin VB.Image Image5 
      Height          =   6015
      Left            =   0
      Picture         =   "购物.frx":D220
      Stretch         =   -1  'True
      Top             =   0
      Width           =   7815
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim j As Integer, t As Integer, s As Integer
Private Sub Combo1_Click()
 If Combo1.Text = "款式一" Then
        Image1.Picture = LoadPicture("jacket_1.jpg")
        j = 280
 Else
        Image1.Picture = LoadPicture("jacket_2.jpg")
        j = 300
 End If
End Sub



Private Sub Combo2_Click()
 If Combo2.Text = "款式一" Then
        Image2.Picture = LoadPicture("trousers_1.jpg")
        t = 180
 Else
        If Combo2.Text = "款式二" Then
            Image2.Picture = LoadPicture("trousers_2.jpg")
            t = 140
        Else
            Image2.Picture = LoadPicture("trousers_3.jpg")
            t = 120
        End If
 End If
End Sub


Private Sub Combo3_Click()
 Select Case Combo3.Text
    Case "款式一"
        Image3.Picture = LoadPicture("shoes_1.jpg")
        s = 380
    Case "款式二"
        Image3.Picture = LoadPicture("shoes_2.jpg")
        s = 350
    Case "款式三"
        Image3.Picture = LoadPicture("shoes_3.jpg")
        s = 280
    Case "款式四"
        Image3.Picture = LoadPicture("shoes_4.jpg")
        s = 300
 End Select
End Sub

Private Sub Command1_Click()
    If j + t + s <= 800 Then Text1.Text = "未超出预算！" Else Text1.Text = "透支了！"
End Sub
