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

📄 祝福.frm

📁 节日到了,用你学过的VB编个祝福的程序送你的朋友一定是很有意义大事情
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   6030
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   9645
   LinkTopic       =   "Form1"
   ScaleHeight     =   6030
   ScaleWidth      =   9645
   StartUpPosition =   3  '窗口缺省
   Begin VB.Timer Timer1 
      Interval        =   1000
      Left            =   8040
      Top             =   3240
   End
   Begin VB.Image Image5 
      Height          =   1560
      Left            =   7320
      Picture         =   "祝福.frx":0000
      Stretch         =   -1  'True
      Top             =   3720
      Width           =   2115
   End
   Begin VB.Label Label1 
      Caption         =   "美好的祝福送给你"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   42
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   -1  'True
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF00FF&
      Height          =   855
      Left            =   1200
      TabIndex        =   0
      Top             =   2160
      Width           =   7335
   End
   Begin VB.Image Image4 
      Height          =   2100
      Left            =   4800
      Picture         =   "祝福.frx":100F5
      Stretch         =   -1  'True
      Top             =   3360
      Width           =   1995
   End
   Begin VB.Image Image3 
      Height          =   1350
      Left            =   2640
      Picture         =   "祝福.frx":111A8
      Stretch         =   -1  'True
      Top             =   3720
      Width           =   1800
   End
   Begin VB.Image Image2 
      Height          =   1695
      Left            =   480
      Picture         =   "祝福.frx":1204E
      Stretch         =   -1  'True
      Top             =   3600
      Width           =   1860
   End
   Begin VB.Image Image1 
      Height          =   1350
      Left            =   3240
      Picture         =   "祝福.frx":2004C
      Stretch         =   -1  'True
      Top             =   480
      Width           =   1800
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub spread()
    Image1.Width = Image1.Width + 50
    Image1.Height = Image1.Height + 50
End Sub
Private Sub Form_Load()
    Label1.Visible = False
    Image2.Visible = False
    Image3.Visible = False
    Image4.Visible = False
    Image5.Visible = False
    Image1.Width = 1500
    Image1.Height = 1500
    Timer1.Enabled = True
    Image1.Visible = True
End Sub

Private Sub Label1_Click()
    Form_Load
End Sub

Private Sub Timer1_Timer()
    Static control As Integer
    Select Case control
        Case 0
            Image1.Picture = Image2.Picture
            Call spread
            control = 1
        Case 1
            Image1.Picture = Image3.Picture
            Call spread
            control = 2
        Case 2
            Image1.Picture = Image4.Picture
            control = 3
            Call spread
        Case 3
            Image1.Picture = Image5.Picture
            Call spread
            control = 4
        Case 4
            Image1.Picture = Image1.Picture
            Call spread
            control = 0
    End Select
    If Image1.Width = 2000 Then
        Timer1.Enabled = False
        Image1.Visible = False
        Label1.Visible = True
        control = 0
    End If
End Sub

⌨️ 快捷键说明

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