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

📄 frmjieshushijian.frm

📁 添加删除修改管理员考生资料
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmjieshushijian 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "考试结束"
   ClientHeight    =   1845
   ClientLeft      =   45
   ClientTop       =   420
   ClientWidth     =   4545
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1845
   ScaleWidth      =   4545
   StartUpPosition =   3  '窗口缺省
   Begin VB.Timer Timer1 
      Interval        =   1000
      Left            =   2400
      Top             =   1320
   End
   Begin VB.Label Label4 
      AutoSize        =   -1  'True
      Caption         =   "开始时间为:              结束时间为:"
      Height          =   180
      Left            =   120
      TabIndex        =   3
      Top             =   720
      Width           =   3420
   End
   Begin VB.Label Label3 
      AutoSize        =   -1  'True
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   240
      Left            =   0
      TabIndex        =   2
      Top             =   1200
      Width           =   1920
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      Height          =   180
      Left            =   1560
      TabIndex        =   1
      Top             =   240
      Width           =   1410
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   240
      Left            =   2400
      TabIndex        =   0
      Top             =   1200
      Width           =   1920
   End
End
Attribute VB_Name = "frmjieshushijian"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
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 Const HWND_TOPMOST& = -1
Private Const SWP_NOSIZE& = &H1
Private Const SWP_NOMOVE& = &H2



Dim sz As Double
Dim js As Integer
Private Sub Form_Load()
SetWindowPos frmjieshushijian.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE
Label1.Caption = frmmain.jieshushijian
Label3.Caption = frmmain.kaishishijian


End Sub

Private Sub Timer1_Timer()
frmjieshushijian.Caption = Now()
If js = 0 Then
sz = DateDiff("s", CDate(frmjieshushijian.Caption), CDate(Label1.Caption))
If sz <= 0 Then
js = 1
MsgBox "考试结束系统正在交卷", vbOKOnly

frmkaishidati.Command1_Click
End If
Dim fz As Integer
Dim mz As Integer
fz = Int(sz / 60)
mz = sz Mod 60
Label2.Caption = "剩余时间:" & fz & ":" & mz & "分钟"
End If




End Sub

⌨️ 快捷键说明

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