⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form1.frm

📁 该源码是利用Image制作小动画,使你的窗体看起来更加漂亮....增加观赏性
💻 FRM
字号:
VERSION 5.00
Begin VB.Form form1 
   Caption         =   "利用Image制作小动画"
   ClientHeight    =   2310
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4545
   LinkTopic       =   "Form1"
   ScaleHeight     =   2310
   ScaleWidth      =   4545
   StartUpPosition =   1  '所有者中心
   Begin VB.CommandButton Command3 
      Caption         =   "退出"
      Height          =   390
      Left            =   3105
      TabIndex        =   2
      Top             =   1770
      Width           =   1125
   End
   Begin VB.CommandButton Command2 
      Caption         =   "暂停"
      Height          =   390
      Left            =   1725
      TabIndex        =   1
      Top             =   1770
      Width           =   1125
   End
   Begin VB.CommandButton Command1 
      Caption         =   "演示"
      Height          =   390
      Left            =   360
      TabIndex        =   0
      Top             =   1770
      Width           =   1125
   End
   Begin VB.Timer Timer1 
      Left            =   195
      Top             =   1380
   End
   Begin VB.Image Image1 
      Height          =   1305
      Left            =   1485
      Picture         =   "Form1.frx":0000
      Top             =   210
      Width           =   1545
   End
End
Attribute VB_Name = "form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim i As Integer
Private Sub Form_Load()
  i = 0
End Sub

Private Sub Timer1_Timer()
  i = i + 1
  Image1.Picture = LoadPicture(App.Path & "\dh\" & i & ".jpg")
  If i = 25 Then i = 0
End Sub

Private Sub Command1_Click()
  Timer1.Interval = 50
End Sub

Private Sub Command2_Click()
  Timer1.Interval = 0
End Sub

Private Sub Command3_Click()
  End
End Sub


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -