VERSION 5.00
Begin VB.Form Frmhq 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "图片交替"
   ClientHeight    =   1800
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   1920
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1800
   ScaleWidth      =   1920
   StartUpPosition =   3  '窗口缺省
   Begin VB.Timer Tmrclock 
      Interval        =   500
      Left            =   960
      Top             =   360
   End
   Begin VB.Image Img1 
      Height          =   1845
      Left            =   0
      Stretch         =   -1  'True
      Top             =   0
      Width           =   1920
   End
End
Attribute VB_Name = "Frmhq"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Tmrclock_Timer()
  Static a As Boolean       '定义静态布尔型变量
  a = Not a                 '真值切换
  If a Then
    Img1.Picture = LoadPicture("戴眼镜.jpg")
  Else
    Img1.Picture = LoadPicture("摘眼镜.jpg")
  End If
End Sub

