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

📄 remindera.frm

📁 vb编写的小的提醒程序
💻 FRM
字号:
VERSION 5.00
Object = "{3B7C8863-D78F-101B-B9B5-04021C009402}#1.2#0"; "RICHTX32.OCX"
Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.3#0"; "COMCTL32.OCX"
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form ReminderA 
   Appearance      =   0  'Flat
   BackColor       =   &H00C0C0C0&
   ClientHeight    =   3930
   ClientLeft      =   1770
   ClientTop       =   1605
   ClientWidth     =   7395
   FillColor       =   &H00FFFF00&
   FillStyle       =   0  'Solid
   ForeColor       =   &H00000000&
   Icon            =   "ReminderA.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MousePointer    =   1  'Arrow
   PaletteMode     =   1  'UseZOrder
   ScaleHeight     =   3930
   ScaleWidth      =   7395
   Begin VB.PictureBox Picture2 
      Align           =   1  'Align Top
      AutoSize        =   -1  'True
      Height          =   855
      Left            =   0
      ScaleHeight     =   795
      ScaleWidth      =   7335
      TabIndex        =   1
      Top             =   0
      Width           =   7395
      Begin VB.Timer Timer1 
         Left            =   240
         Top             =   600
      End
      Begin VB.CommandButton Command4 
         Cancel          =   -1  'True
         Caption         =   "Exit"
         Height          =   375
         Left            =   6240
         TabIndex        =   14
         Top             =   240
         Width           =   615
      End
      Begin VB.TextBox Text3 
         Alignment       =   2  'Center
         Height          =   285
         Left            =   3720
         MultiLine       =   -1  'True
         TabIndex        =   7
         Top             =   480
         Width           =   375
      End
      Begin VB.TextBox Text2 
         Alignment       =   2  'Center
         Height          =   285
         Left            =   3240
         MultiLine       =   -1  'True
         TabIndex        =   6
         Top             =   480
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Alignment       =   2  'Center
         Height          =   285
         Left            =   2760
         MultiLine       =   -1  'True
         TabIndex        =   5
         Top             =   480
         Width           =   375
      End
      Begin VB.CommandButton Command3 
         Caption         =   "Reset"
         Enabled         =   0   'False
         Height          =   375
         Left            =   1920
         TabIndex        =   4
         Top             =   240
         Width           =   615
      End
      Begin VB.CommandButton Command2 
         Caption         =   "Pause"
         Height          =   375
         Left            =   1200
         TabIndex        =   3
         Top             =   240
         Width           =   615
      End
      Begin VB.CommandButton Command1 
         Caption         =   "Start"
         Height          =   375
         Left            =   480
         TabIndex        =   2
         Top             =   240
         Width           =   615
      End
      Begin VB.Label Label2 
         Alignment       =   2  'Center
         Caption         =   "Select Time"
         ForeColor       =   &H000000FF&
         Height          =   255
         Left            =   2640
         TabIndex        =   13
         Top             =   0
         Width           =   1695
      End
      Begin VB.Label Label3 
         Alignment       =   2  'Center
         Caption         =   "Time Remaining"
         ForeColor       =   &H00800080&
         Height          =   255
         Left            =   4440
         TabIndex        =   12
         Top             =   120
         Width           =   1575
      End
      Begin VB.Label Label1 
         Alignment       =   2  'Center
         BackColor       =   &H0000FFFF&
         BorderStyle     =   1  'Fixed Single
         Caption         =   "00:00:00"
         BeginProperty Font 
            Name            =   "Arial"
            Size            =   14.25
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H000000FF&
         Height          =   375
         Left            =   4440
         TabIndex        =   11
         Top             =   360
         Width           =   1575
      End
      Begin VB.Label Label6 
         Alignment       =   2  'Center
         Caption         =   "Sec"
         ForeColor       =   &H00C00000&
         Height          =   255
         Left            =   3720
         TabIndex        =   10
         Top             =   240
         Width           =   375
      End
      Begin VB.Label Label5 
         Alignment       =   2  'Center
         Caption         =   "Min"
         ForeColor       =   &H00C00000&
         Height          =   255
         Left            =   3240
         TabIndex        =   9
         Top             =   240
         Width           =   375
      End
      Begin VB.Label Label4 
         Alignment       =   2  'Center
         Caption         =   "Hrs"
         ForeColor       =   &H00FF0000&
         Height          =   255
         Left            =   2760
         TabIndex        =   8
         Top             =   240
         Width           =   375
      End
   End
   Begin RichTextLib.RichTextBox rtfTextEditor 
      Height          =   3930
      Left            =   0
      TabIndex        =   0
      Top             =   960
      Width           =   7200
      _ExtentX        =   12700
      _ExtentY        =   6932
      _Version        =   393217
      Enabled         =   -1  'True
      ScrollBars      =   2
      TextRTF         =   $"ReminderA.frx":0442
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "Times New Roman"
         Size            =   9
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
   Begin MSComDlg.CommonDialog dlgRTFDialogs 
      Left            =   6720
      Top             =   960
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
      DefaultExt      =   "rtf"
      DialogTitle     =   "RTF/TEXT EDITOR"
      Filter          =   "Text Files|*.txt|All files|*.*"
      FontSize        =   0
   End
   Begin ComctlLib.ImageList ImageList11 
      Left            =   480
      Top             =   1320
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   16777215
      ImageWidth      =   16
      ImageHeight     =   16
      MaskColor       =   16777215
      _Version        =   327682
      BeginProperty Images {0713E8C2-850A-101B-AFC0-4210102A8DA7} 
         NumListImages   =   16
         BeginProperty ListImage1 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "ReminderA.frx":0528
            Key             =   "New"
         EndProperty
         BeginProperty ListImage2 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "ReminderA.frx":063A
            Key             =   ""
         EndProperty
         BeginProperty ListImage3 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "ReminderA.frx":0734
            Key             =   ""
         EndProperty
         BeginProperty ListImage4 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "ReminderA.frx":0846
            Key             =   ""
         EndProperty
         BeginProperty ListImage5 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "ReminderA.frx":0958
            Key             =   ""
         EndProperty
         BeginProperty ListImage6 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "ReminderA.frx":0A6A
            Key             =   ""
         EndProperty
         BeginProperty ListImage7 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "ReminderA.frx":0B7C
            Key             =   ""
         EndProperty
         BeginProperty ListImage8 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "ReminderA.frx":0C8E
            Key             =   ""
         EndProperty
         BeginProperty ListImage9 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "ReminderA.frx":0DA0
            Key             =   ""
         EndProperty
         BeginProperty ListImage10 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "ReminderA.frx":135A
            Key             =   ""
         EndProperty
         BeginProperty ListImage11 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "ReminderA.frx":18DC
            Key             =   ""
         EndProperty
         BeginProperty ListImage12 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "ReminderA.frx":1E5E
            Key             =   ""
         EndProperty
         BeginProperty ListImage13 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "ReminderA.frx":1F70
            Key             =   ""
         EndProperty
         BeginProperty ListImage14 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "ReminderA.frx":2082
            Key             =   ""
         EndProperty
         BeginProperty ListImage15 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "ReminderA.frx":2194
            Key             =   ""
         EndProperty
         BeginProperty ListImage16 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "ReminderA.frx":22A6
            Key             =   ""
         EndProperty
      EndProperty
   End
End
Attribute VB_Name = "ReminderA"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_Description = "Main Form"

Option Explicit
Dim x
Const ATTR_NORMAL = 0
Const ATTR_READONLY = 1
Const ATTR_HIDDEN = 2
Const ATTR_SYSTEM = 4
Const ATTR_VOLUME = 8
Const ATTR_DIRECTORY = 16
Const ATTR_ARCHIVE = 32

Dim Hours As Integer
Dim Minutes As Integer
Dim Seconds As Integer
Dim Time As Date
Dim ID

Private Sub Mydisplay()

    Hours = Val(Text1.Text)
    Minutes = Val(Text2.Text)
    Seconds = Val(Text3.Text)

    Time = TimeSerial(Hours, Minutes, Seconds)

    Label1.Caption = Format$(Time, "hh") & ":" & Format$(Time, "nn") & ":" & Format$(Time, "ss")
End Sub

Private Sub Command1_Click()

    Timer1.Enabled = True
      Command3.Enabled = False
    
ReminderA.WindowState = 1

End Sub

Private Sub Command2_Click()

    Timer1.Enabled = False
    Command3.Enabled = True
End Sub

Private Sub Command3_Click()

    Hours = 0
    Minutes = 0
    Seconds = 0
    Time = 0
    Text1.Text = " "
    Text2.Text = " "
    Text3.Text = " "
    Text1.SetFocus
End Sub
Private Sub Command4_Click()
Unload Me
End Sub

Private Sub Form_Load()

 Timer1.Interval = 1000
    Hours = 0
    Minutes = 0
    Seconds = 0
    Time = 0
End Sub




Private Sub Text1_Change()
    Mydisplay
End Sub

Private Sub Text2_Change()
    Mydisplay
End Sub

Private Sub Text3_Change()
    Mydisplay
End Sub

Private Sub Timer1_Timer()
  
 
   
    Timer1.Enabled = False
    If (Format$(Time, "hh") & ":" & Format$(Time, "nn") & ":" & Format$(Time, "ss")) <> "00:00:00" Then 'Counter to continue loop until 0
        Time = DateAdd("s", -1, Time)
        Label1.Visible = False
        Label1.Caption = Format$(Time, "hh") & ":" & Format$(Time, "nn") & ":" & Format$(Time, "ss")
        Label1.Visible = True
        Timer1.Enabled = True
    Else
        
        Timer1.Enabled = False
        Beep
        Beep
  ReminderA.WindowState = 0
ReminderA.Show

    End If
End Sub

⌨️ 快捷键说明

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