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

📄 form1.frm

📁 “辩论赛计时系统”是采用VB语言编写的纯软件系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "欢迎使用"
   ClientHeight    =   8415
   ClientLeft      =   2310
   ClientTop       =   1590
   ClientWidth     =   12030
   Icon            =   "Form1.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   ScaleHeight     =   8415
   ScaleWidth      =   12030
   Begin VB.PictureBox Picture1 
      Height          =   6975
      Left            =   1440
      Picture         =   "Form1.frx":030A
      ScaleHeight     =   6915
      ScaleWidth      =   9075
      TabIndex        =   0
      Top             =   120
      Width           =   9135
      Begin VB.Timer Timer1 
         Interval        =   500
         Left            =   240
         Top             =   240
      End
      Begin VB.Label Label7 
         BackStyle       =   0  'Transparent
         Caption         =   "Label7"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   14.25
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H000000FF&
         Height          =   495
         Left            =   3480
         TabIndex        =   8
         Top             =   2880
         Width           =   4335
      End
      Begin VB.Label Label6 
         BackStyle       =   0  'Transparent
         Caption         =   "现在时间:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   14.25
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF0000&
         Height          =   375
         Left            =   1920
         TabIndex        =   7
         Top             =   2880
         Width           =   1575
      End
      Begin VB.Label Label5 
         BackStyle       =   0  'Transparent
         Caption         =   "                      退出"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H0000FFFF&
         Height          =   495
         Left            =   7080
         TabIndex        =   6
         Top             =   6000
         Width           =   1575
      End
      Begin VB.Label Label4 
         BackStyle       =   0  'Transparent
         Caption         =   "                  最后陈述阶段"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H0000FFFF&
         Height          =   495
         Left            =   4800
         TabIndex        =   5
         Top             =   6000
         Width           =   1575
      End
      Begin VB.Label Label3 
         BackStyle       =   0  'Transparent
         Caption         =   "                  自由辩论阶段"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H0000FFFF&
         Height          =   495
         Left            =   2520
         TabIndex        =   4
         Top             =   6000
         Width           =   1575
      End
      Begin VB.Label Label2 
         BackStyle       =   0  'Transparent
         Caption         =   "                  立论陈词阶段"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H0000FFFF&
         Height          =   495
         Left            =   360
         TabIndex        =   3
         Top             =   6000
         Width           =   1575
      End
      Begin VB.Image ButtonPicture1 
         Height          =   555
         Index           =   0
         Left            =   7080
         Top             =   6000
         Width           =   1575
      End
      Begin VB.Image ButtonPicture1 
         Height          =   555
         Index           =   1
         Left            =   4800
         Top             =   6000
         Width           =   1575
      End
      Begin VB.Image ButtonPicture1 
         Height          =   555
         Index           =   2
         Left            =   2520
         Top             =   6000
         Width           =   1575
      End
      Begin VB.Image ButtonPicture1 
         Height          =   555
         Index           =   3
         Left            =   360
         Top             =   6000
         Width           =   1575
      End
      Begin VB.Image DownImage 
         Height          =   555
         Left            =   120
         Picture         =   "Form1.frx":1BDC0
         Top             =   7440
         Visible         =   0   'False
         Width           =   1815
      End
      Begin VB.Image UpImage 
         Height          =   555
         Left            =   2040
         Picture         =   "Form1.frx":1F2A0
         Top             =   7440
         Visible         =   0   'False
         Width           =   1815
      End
      Begin VB.Image OverImage 
         Height          =   555
         Left            =   3960
         Picture         =   "Form1.frx":205F4
         Top             =   7440
         Visible         =   0   'False
         Width           =   1815
      End
      Begin VB.Label lblStatus 
         Alignment       =   2  'Center
         BackColor       =   &H00000000&
         BorderStyle     =   1  'Fixed Single
         BeginProperty Font 
            Name            =   "MS Sans Serif"
            Size            =   13.5
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H000000FF&
         Height          =   495
         Left            =   5880
         TabIndex        =   2
         Top             =   7440
         Width           =   3135
      End
      Begin VB.Label Label1 
         BackStyle       =   0  'Transparent
         Caption         =   "辩论赛计时系统"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   42
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   975
         Left            =   1320
         TabIndex        =   1
         Top             =   840
         Width           =   6135
      End
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim MouseOver
Dim MousePress
Dim NewIndex
Const SWP_NOSIZE = &H1
    Const SWP_NOMOVE = &H2
    Const SWP_NOACTIVATE = &H10
    Const HWND_TOPMOST = -1
    Const HWND_NOTOPMOST = -2
    Const SWP_SHOWWINDOW = &H40
    Private Declare Function 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) As Long

Private Sub ButtonPicture1_MouseDown(Index As Integer, Button As Integer, Shift As Integer, x As Single, y As Single)
If MousePress Then Exit Sub
   ButtonPicture1(Index).Picture = DownImage.Picture
   lblStatus.Caption = "Mouse Down"
   MousePress = True
End Sub

Private Sub ButtonPicture1_MouseMove(Index As Integer, Button As Integer, Shift As Integer, x As Single, y As Single)
If MouseOver Then Exit Sub
   ButtonPicture1(Index).Picture = OverImage.Picture
   lblStatus.Caption = "Mouse Over - Button"
   NewIndex = Index
   MouseOver = True
End Sub

Private Sub ButtonPicture1_MouseUp(Index As Integer, Button As Integer, Shift As Integer, x As Single, y As Single)
If Not MousePress Then Exit Sub
       ButtonPicture1(Index).Picture = UpImage.Picture
       lblStatus.Caption = "Mouse Up"
       MousePress = False
End Sub

Private Sub Form_Load()
DTPicker1 = Date
Label7.Caption = Time()
Dim i As Integer
    lblStatus.Caption = "Ready?"
    For i = ButtonPicture1.LBound To ButtonPicture1.UBound
        ButtonPicture1(i).Picture = UpImage.Picture
    Next i
End Sub

Private Sub Form_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
If Not MouseOver Then Exit Sub
   lblStatus.Caption = "Mouse Over - Form"
   MouseOver = False
   MousePress = False
   ButtonPicture1(NewIndex).Picture = UpImage.Picture
End Sub

Private Sub Label2_Click()
    Unload Me
    Form2.Show
End Sub

Private Sub Label3_Click()
    Unload Me
    Form3.Show
End Sub

Private Sub Label4_Click()
    Unload Me
    Form4.Show
End Sub

Private Sub Label5_Click()
      Dim response
      response = MsgBox("是否退出系统?", vbOKCancel + vbQuestion, "退出")
      If response = 1 Then
        GotoVal = Me.Height / 2
    For Gointo = 1 To GotoVal
        DoEvents
        Me.Height = Me.Height - 50
        If Me.Height <= 11 Then GoTo horiz
    Next Gointo
horiz:
    Me.Height = 30
    GotoVal = Me.Width / 2
    For Gointo = 1 To GotoVal
        DoEvents
        Me.Width = Me.Width - 50
        If Me.Width <= 11 Then End
    Next Gointo
    End
    End If
End Sub
    

Private Sub Timer1_Timer()
   Label7.Caption = Format(Date, "yyyy-MM-dd") & "  " & Time()
End Sub



⌨️ 快捷键说明

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