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

📄 alert.frm

📁 Some scheduling software.
💻 FRM
字号:
VERSION 5.00
Begin VB.Form alert 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Scheduler Alert"
   ClientHeight    =   4455
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   5190
   LinkTopic       =   "Form3"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   4455
   ScaleWidth      =   5190
   StartUpPosition =   2  'CenterScreen
   Begin VB.Frame Frame1 
      Height          =   4455
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   5175
      Begin VB.Timer destroy 
         Interval        =   5000
         Left            =   2205
         Top             =   3495
      End
      Begin VB.CommandButton cmdReschedule 
         Caption         =   "Reschedule"
         Height          =   375
         Left            =   480
         TabIndex        =   3
         Top             =   2880
         Width           =   4455
      End
      Begin VB.CommandButton cmdDismiss 
         Caption         =   "Ok I got the message!"
         Height          =   375
         Left            =   480
         TabIndex        =   2
         Top             =   2400
         Width           =   4455
      End
      Begin VB.Label lblAlert 
         Alignment       =   2  'Center
         BackColor       =   &H8000000D&
         Caption         =   "Alert"
         BeginProperty Font 
            Name            =   "MS Sans Serif"
            Size            =   12
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H80000005&
         Height          =   2175
         Left            =   0
         TabIndex        =   1
         Top             =   120
         Width           =   5175
      End
   End
End
Attribute VB_Name = "alert"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public AlertMessage As String

Private Sub cmdDismiss_Click()
    On Error Resume Next
    Unload Me
End Sub

Private Sub cmdReschedule_Click()
    On Error Resume Next
    Unload Me
End Sub

Private Sub destroy_Timer()
    On Error Resume Next
    Me.Hide
    alertON = False
End Sub

Private Sub Form_GotFocus()
    Me.cmdDismiss.SetFocus
End Sub

Private Sub Form_Load()
    On Error Resume Next
    lblAlert.Caption = AlertMessage
    destroy.Interval = 30000
    destroy.Enabled = True
    SetWindowPos Me.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE
End Sub

Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    Me.SetFocus
End Sub

⌨️ 快捷键说明

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