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

📄 frmcover.frm

📁 这是一个有VB开发的学院办公自动化系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmcover 
   Appearance      =   0  'Flat
   AutoRedraw      =   -1  'True
   BackColor       =   &H80000005&
   BorderStyle     =   0  'None
   Caption         =   "frmcover"
   ClientHeight    =   5520
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   7290
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   9847.89
   ScaleMode       =   0  'User
   ScaleWidth      =   11168.66
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Begin VB.PictureBox cover 
      AutoRedraw      =   -1  'True
      AutoSize        =   -1  'True
      Height          =   7260
      Left            =   0
      Picture         =   "FrmCover.frx":0000
      ScaleHeight     =   7200
      ScaleWidth      =   9600
      TabIndex        =   0
      Top             =   -240
      Width           =   9660
      Begin VB.Timer Timer3 
         Interval        =   100
         Left            =   1080
         Top             =   120
      End
      Begin VB.Timer Timer2 
         Interval        =   200
         Left            =   480
         Top             =   0
      End
      Begin VB.Label Label4 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "院级办公室"
         BeginProperty Font 
            Name            =   "华文行楷"
            Size            =   26.25
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00800000&
         Height          =   555
         Left            =   1920
         TabIndex        =   4
         Top             =   600
         Width           =   2700
      End
      Begin VB.Image Image3 
         Height          =   1200
         Left            =   120
         Picture         =   "FrmCover.frx":4B26C
         Top             =   4320
         Width           =   1050
      End
      Begin VB.Image Image2 
         Height          =   1200
         Index           =   0
         Left            =   1080
         Picture         =   "FrmCover.frx":4C6E9
         Top             =   3720
         Width           =   1050
      End
      Begin VB.Image Image1 
         Height          =   1200
         Index           =   0
         Left            =   360
         Picture         =   "FrmCover.frx":4DB66
         Top             =   3120
         Width           =   1050
      End
      Begin VB.Image Image1 
         Height          =   1200
         Index           =   1
         Left            =   600
         Picture         =   "FrmCover.frx":50069
         Top             =   4200
         Width           =   1050
      End
      Begin VB.Label Label3 
         BackStyle       =   0  'Transparent
         Caption         =   "时间:2003-06-01"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00800000&
         Height          =   375
         Left            =   3840
         TabIndex        =   3
         Top             =   4680
         Width           =   3015
      End
      Begin VB.Label Label2 
         BackStyle       =   0  'Transparent
         Caption         =   "版权:孟凡奇 罗华 鲁建畅"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00800000&
         Height          =   255
         Left            =   3840
         TabIndex        =   2
         Top             =   4200
         Width           =   3015
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "信息管理系统"
         BeginProperty Font 
            Name            =   "华文行楷"
            Size            =   42
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00800000&
         Height          =   885
         Left            =   960
         TabIndex        =   1
         Top             =   1440
         Width           =   5130
      End
   End
   Begin VB.Timer Timer1 
      Interval        =   200
      Left            =   1440
      Top             =   480
   End
End
Attribute VB_Name = "frmcover"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim dlaytime As Integer

Private Sub Form_Load()
   dlaytime = 0
   Timer1.Enabled = True
   
   Image1(i).Visible = False
   
   maxx = Label1.Width                          'get label width
   maxy = Label1.Height + (Label1.Height / 2)   'get label height add extra height for flame
   ReDim new_flame(maxx, maxy)                  'resize array to label
   ReDim old_flame(maxx, maxy)
End Sub

Private Sub Form_Resize()
  cover.left = 0
  cover.top = 0
  
  cover.Width = frmcover.ScaleWidth
  cover.Height = frmcover.ScaleHeight
   
End Sub

Private Sub Form_Unload(Cancel As Integer)
   Dim fLogin As New FrmLogin
    '显示登录窗口
    fLogin.Show vbModal
    '判断是否为授权用户
      If Not fLogin.OK Then
      'Login Failed so exit app
      End
      End If
    Unload fLogin
    Set fMainForm = New FrmMain
    fMainForm.Show
End Sub

Private Sub Timer1_Timer()
  If dlaytime > 20 Then
     Timer1.Enabled = False
    ' Load FrmLogin
    ' FrmLogin.Show
     frmcover.Visible = False
     Unload Me
  Else
      dlaytime = dlaytime + 1
  End If
End Sub




Private Sub Timer2_Timer()
  Static i, x, y As Integer
     Image1(i).Visible = True
     x = Image1(i).left
     y = Image1(i).top
     i = (i + 1) Mod 2
     Image1(i).Visible = False
     Image1(i).Move x, y
     
End Sub

⌨️ 快捷键说明

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