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

📄 frmmain.frm

📁 网上收集的一个考试管理系统。带论文的
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form FrmMain 
   BackColor       =   &H00404040&
   BorderStyle     =   0  'None
   ClientHeight    =   7950
   ClientLeft      =   120
   ClientTop       =   120
   ClientWidth     =   10935
   ControlBox      =   0   'False
   Icon            =   "FrmMain.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   MouseIcon       =   "FrmMain.frx":0442
   MousePointer    =   99  'Custom
   ScaleHeight     =   7950
   ScaleWidth      =   10935
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  '窗口缺省
   Begin VB.Timer Timer1 
      Enabled         =   0   'False
      Interval        =   60000
      Left            =   2520
      Top             =   1125
   End
   Begin VB.Frame Frame1 
      Height          =   60
      Left            =   45
      TabIndex        =   4
      Top             =   765
      Width           =   10860
   End
   Begin MSComctlLib.ImageList ImageList1 
      Left            =   1350
      Top             =   1035
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   32
      ImageHeight     =   32
      MaskColor       =   12632256
      _Version        =   393216
      BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
         NumListImages   =   6
         BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "FrmMain.frx":074C
            Key             =   ""
         EndProperty
         BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "FrmMain.frx":0BA0
            Key             =   ""
         EndProperty
         BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "FrmMain.frx":0FF4
            Key             =   ""
         EndProperty
         BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "FrmMain.frx":1448
            Key             =   ""
         EndProperty
         BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "FrmMain.frx":189C
            Key             =   ""
         EndProperty
         BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "FrmMain.frx":1CF0
            Key             =   ""
         EndProperty
      EndProperty
   End
   Begin MSComctlLib.ListView LvItem 
      Height          =   4575
      Left            =   135
      TabIndex        =   2
      Top             =   1800
      Width           =   8055
      _ExtentX        =   14208
      _ExtentY        =   8070
      LabelWrap       =   -1  'True
      HideSelection   =   0   'False
      OLEDragMode     =   1
      _Version        =   393217
      Icons           =   "ImageList1"
      SmallIcons      =   "ImageList1"
      ColHdrIcons     =   "ImageList1"
      ForeColor       =   65535
      BackColor       =   4210752
      Appearance      =   0
      OLEDragMode     =   1
      NumItems        =   0
   End
   Begin VB.PictureBox Winsock1 
      Height          =   480
      Left            =   2025
      ScaleHeight     =   420
      ScaleWidth      =   1140
      TabIndex        =   6
      Top             =   1125
      Width           =   1200
   End
   Begin VB.Label Label3 
      Alignment       =   2  'Center
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   15.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   315
      Left            =   8370
      TabIndex        =   5
      Top             =   405
      Width           =   195
   End
   Begin VB.Label Label2 
      Alignment       =   2  'Center
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "你还未登录,请登录并进行考试"
      ForeColor       =   &H0000FFFF&
      Height          =   180
      Left            =   4410
      TabIndex        =   3
      Top             =   495
      Width           =   2520
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      BackStyle       =   0  'Transparent
      Caption         =   "欢迎进入 考试系统"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   21.75
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   -1  'True
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   495
      Index           =   1
      Left            =   15
      TabIndex        =   1
      Top             =   255
      Width           =   3855
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      BackStyle       =   0  'Transparent
      Caption         =   "欢迎进入 考试系统"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   21.75
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   -1  'True
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H000000FF&
      Height          =   495
      Index           =   0
      Left            =   0
      TabIndex        =   0
      Top             =   240
      Width           =   3855
   End
   Begin VB.Menu MenuQuick 
      Caption         =   "快捷菜单"
      Visible         =   0   'False
      Begin VB.Menu MenuFillSubject 
         Caption         =   "填空题目[&F]"
      End
      Begin VB.Menu MenuSingleChoice 
         Caption         =   "单项选择题[&S]"
      End
      Begin VB.Menu MultiChoice 
         Caption         =   "多项选择题[&M]"
      End
   End
End
Attribute VB_Name = "FrmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" _
        (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" _
        (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, _
        ByVal lpsz2 As String) As Long
        
Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _
        ByVal nCmdShow As Long) As Long
        
Private Declare Function SystemParametersInfo Lib _
"user32" Alias "SystemParametersInfoA" (ByVal uAction _
As Long, ByVal uParam As Long, ByVal lpvParam As Any, _
ByVal fuWinIni As Long) As Long

Const sTrayWindow = "Shell_TrayWnd"
Const sStartButton = "Button"
Const sAppSwitchBar = "ReBarWindow32"
Const sAppIcon = "ToolbarWindow32"
Const sDesktopIcon = "ShellDll_DefView"
Const sProgman = "Progman"
Const SW_SHOW = 5
Const SW_HIDE = 0
Dim wnd As Long
Dim TryHost As Integer

Private TWForm As New TransWindow


Private Sub Command1_Click()
MsgBox Winsock1.LocalIP
End Sub

Sub Init()
If App.PrevInstance = True Then
   MsgBox "系统已经运行", vbInformation
   End
End If
    Me.Show
    
    If Dir(App.Path & "\ExamBak.bak") = Empty Then '没有备份文件
        UserLogin = False
    Else
        Call ResumeStudentInfo
        UserLogin = True
        Load FrmBuild
        FrmBuild.Show
        FrmBuild.SetFocus
        Timer1.Enabled = True
        Call ConnectServer
    End If
        LockPC True
        LvItem.ListItems.Add , , "考生登录", 1
        LvItem.ListItems.Add , , "基础题", 2
        LvItem.ListItems.Add , , "操作题", 4
        LvItem.ListItems.Add , , "浏览计算机", 5
        LvItem.ListItems.Add , , "交卷", 6
        LvItem.ListItems.Add , , "退出", 3


End Sub
Private Sub Form_Load()
TWForm.SetForm Me
TWForm.ShowForm 8
Call Init
End Sub

Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)

⌨️ 快捷键说明

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