vbAccelerator - Contents of code file: frmTempRes.frm

VERSION 5.00
Begin VB.Form frmTempRes 
   Caption         =   "JPG Resource Demonstration"
   ClientHeight    =   4380
   ClientLeft      =   4125
   ClientTop       =   1995
   ClientWidth     =   7890
   BeginProperty Font 
      Name            =   "Tahoma"
      Size            =   8.25
      Charset         =   0
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   Icon            =   "frmTempRes.frx":0000
   LinkTopic       =   "Form1"
   ScaleHeight     =   4380
   ScaleWidth      =   7890
   Begin VB.OptionButton optPicture 
      Caption         =   "Picture &2"
      Height          =   435
      Index           =   1
      Left            =   6420
      Style           =   1  'Graphical
      TabIndex        =   1
      Top             =   540
      Width           =   1395
   End
   Begin VB.OptionButton optPicture 
      Caption         =   "Picture &1"
      Height          =   435
      Index           =   0
      Left            =   6420
      Style           =   1  'Graphical
      TabIndex        =   0
      Top             =   60
      Width           =   1395
   End
   Begin VB.Image imgPic 
      BorderStyle     =   1  'Fixed Single
      Height          =   3375
      Left            =   60
      Top             =   60
      Width           =   4575
   End
End
Attribute VB_Name = "frmTempRes"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Image1_Click()

End Sub

Private Sub optPicture_Click(Index As Integer)
   
   Dim cR As New cLoadResPicture
   Select Case True
   Case optPicture(0).Value
      Set imgPic.Picture = cR.LoadResPicture(2002, "JPG")
   Case optPicture(1).Value
      Set imgPic.Picture = cR.LoadResPicture(2001, "JPG")
   End Select
   
End Sub