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

📄 frmwelcome.frm

📁 这是一个VB做的多功能图书借阅系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmWelcome 
   BorderStyle     =   0  'None
   Caption         =   "Welcome"
   ClientHeight    =   1830
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   3885
   LinkTopic       =   "Form1"
   Picture         =   "frmWelcome.frx":0000
   ScaleHeight     =   1830
   ScaleWidth      =   3885
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  '窗口缺省
End
Attribute VB_Name = "frmWelcome"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False


'####################################################
'Declaration for making form as TOPMOST
' [ Start ]
'####################################################

Const HWND_TOPMOST = -1
Const HWND_NOTOPMOST = -2
Const SWP_NOSIZE = &H1
Const SWP_NOMOVE = &H2
Const SWP_NOACTIVATE = &H10
Const SWP_SHOWWINDOW = &H40

Private Declare Sub SetWindowPos Lib "User32" (ByVal hWnd As Long, ByVal hWndInsertAfter As Long, ByVal X As Long, ByVal Y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long)
'####################################################
'Declaration for making form as TOPMOST
' [ End ]
'####################################################


'####################################################
'Api Declaration to make delay between form load and unload
'####################################################
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)



'####################################################
'Code for making forms Animated on Start-up and Close
' [ Start ]
'####################################################
Dim i As Integer

Private Sub popup()
On Error Resume Next
    Picture1.Visible = True
    i = Me.Height
    Me.Height = 0
    While Me.Height < i
        Me.Height = Me.Height + 1
        Me.Top = Me.Top - 1
        DoEvents
    Wend
End Sub

Private Sub popdown()
On Error Resume Next
    i = Me.Height
    While Me.Height > 0
        Me.Height = Me.Height - 1
        Me.Top = Me.Top + 1
        DoEvents
    Wend
End Sub

Private Sub Form_Activate()
On Error Resume Next
    lblUserName.Caption = sUserName
    Call popup
    SetWindowPos Me.hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOACTIVATE Or SWP_SHOWWINDOW Or SWP_NOMOVE Or SWP_NOSIZE
    Sleep 1000  'Wait for 1 Seconds
    Call popdown
End Sub

Private Sub Form_Load()
On Error Resume Next
    Me.Left = Screen.Width - (Me.Width + 50)
    Me.Top = Screen.Height - 450 '450 assumed height for taskbar
    Picture1.Visible = False
    DoEvents
End Sub

Private Sub Label2_Click()

End Sub

'####################################################
'Code for making forms Animated on Start-up and Close
' [ends]
'####################################################





Private Sub Picture1_Click()

End Sub

⌨️ 快捷键说明

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