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

📄 frmmain.frm

📁 网上收集的一个考试管理系统。带论文的
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form FrmMain 
   Caption         =   "考试管理系统"
   ClientHeight    =   8235
   ClientLeft      =   165
   ClientTop       =   450
   ClientWidth     =   11400
   Icon            =   "FrmMain.frx":0000
   LinkTopic       =   "Form1"
   ScaleHeight     =   8235
   ScaleWidth      =   11400
   StartUpPosition =   2  '屏幕中心
   Begin VB.Timer Timer1 
      Enabled         =   0   'False
      Interval        =   1000
      Left            =   8100
      Top             =   5310
   End
   Begin VB.Frame Frame2 
      Caption         =   "即时监视"
      Height          =   2310
      Left            =   0
      TabIndex        =   3
      Top             =   5085
      Width           =   9960
      Begin VB.PictureBox WskFileComm 
         Height          =   480
         Index           =   0
         Left            =   7200
         ScaleHeight     =   420
         ScaleWidth      =   1140
         TabIndex        =   15
         Top             =   270
         Width           =   1200
      End
      Begin VB.PictureBox WskFileBind 
         Height          =   480
         Left            =   7650
         ScaleHeight     =   420
         ScaleWidth      =   1140
         TabIndex        =   16
         Top             =   225
         Width           =   1200
      End
      Begin VB.CommandButton Command2 
         Caption         =   "作弊处理"
         Height          =   420
         Left            =   1440
         TabIndex        =   9
         Top             =   1485
         Width           =   1230
      End
      Begin VB.TextBox Text2 
         Height          =   285
         Left            =   1440
         TabIndex        =   8
         Top             =   315
         Width           =   1455
      End
      Begin VB.CommandButton Command1 
         Caption         =   "发送"
         Height          =   330
         Left            =   6975
         TabIndex        =   6
         Top             =   855
         Width           =   1455
      End
      Begin VB.TextBox Text1 
         Height          =   330
         Left            =   1440
         TabIndex        =   4
         Text            =   "如:请误东张西望,在发现就按作弊处理"
         Top             =   855
         Width           =   5280
      End
      Begin VB.Label Label5 
         AutoSize        =   -1  'True
         Height          =   180
         Left            =   4095
         TabIndex        =   12
         Top             =   360
         Width           =   90
      End
      Begin VB.Label Label4 
         AutoSize        =   -1  'True
         Caption         =   "对应考生:"
         Height          =   180
         Left            =   3060
         TabIndex        =   11
         Top             =   360
         Width           =   900
      End
      Begin VB.Label Label3 
         Caption         =   "(这将终止考生考试资格,分数计为0分)"
         Height          =   240
         Left            =   2835
         TabIndex        =   10
         Top             =   1620
         Width           =   4200
      End
      Begin VB.Label Label2 
         Caption         =   "机号:"
         Height          =   330
         Left            =   810
         TabIndex        =   7
         Top             =   360
         Width           =   1950
      End
      Begin VB.Label Label1 
         Caption         =   "警告:"
         Height          =   465
         Left            =   810
         TabIndex        =   5
         Top             =   900
         Width           =   1635
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "考生状况"
      Height          =   3930
      Left            =   0
      TabIndex        =   1
      Top             =   855
      Width           =   10005
      Begin MSComctlLib.ListView LVStudentState 
         Height          =   3615
         Left            =   45
         TabIndex        =   2
         Top             =   225
         Width           =   9870
         _ExtentX        =   17410
         _ExtentY        =   6376
         View            =   3
         LabelWrap       =   -1  'True
         HideSelection   =   -1  'True
         FullRowSelect   =   -1  'True
         _Version        =   393217
         ForeColor       =   -2147483640
         BackColor       =   -2147483643
         BorderStyle     =   1
         Appearance      =   1
         NumItems        =   5
         BeginProperty ColumnHeader(1) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
            Text            =   "机号"
            Object.Width           =   2540
         EndProperty
         BeginProperty ColumnHeader(2) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
            SubItemIndex    =   1
            Text            =   "准考证号"
            Object.Width           =   2540
         EndProperty
         BeginProperty ColumnHeader(3) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
            SubItemIndex    =   2
            Text            =   "姓名"
            Object.Width           =   2540
         EndProperty
         BeginProperty ColumnHeader(4) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
            SubItemIndex    =   3
            Text            =   "坐机地址"
            Object.Width           =   2540
         EndProperty
         BeginProperty ColumnHeader(5) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
            SubItemIndex    =   4
            Text            =   "状态"
            Object.Width           =   2540
         EndProperty
      End
   End
   Begin VB.PictureBox Winsock1 
      Height          =   480
      Index           =   0
      Left            =   7560
      ScaleHeight     =   420
      ScaleWidth      =   1140
      TabIndex        =   17
      Top             =   270
      Width           =   1200
   End
   Begin MSComctlLib.ImageList ImageList1 
      Left            =   8010
      Top             =   180
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   32
      ImageHeight     =   32
      MaskColor       =   12632256
      _Version        =   393216
      BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
         NumListImages   =   7
         BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "FrmMain.frx":0442
            Key             =   ""
         EndProperty
         BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "FrmMain.frx":0896
            Key             =   ""
         EndProperty
         BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "FrmMain.frx":0CEA
            Key             =   ""
         EndProperty
         BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "FrmMain.frx":113E
            Key             =   ""
         EndProperty
         BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "FrmMain.frx":1592
            Key             =   ""
         EndProperty
         BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "FrmMain.frx":19E6
            Key             =   ""
         EndProperty
         BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "FrmMain.frx":1E3A
            Key             =   ""
         EndProperty
      EndProperty
   End
   Begin MSComctlLib.Toolbar Toolbar1 
      Align           =   1  'Align Top
      Height          =   795
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   11400
      _ExtentX        =   20108
      _ExtentY        =   1402
      ButtonWidth     =   1455
      ButtonHeight    =   1349
      Appearance      =   1
      Style           =   1
      ImageList       =   "ImageList1"
      _Version        =   393216
      BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
         NumButtons      =   5
         BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "退出系统"
            ImageIndex      =   1
         EndProperty
         BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Style           =   3
         EndProperty
         BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "重新登录"
            ImageIndex      =   6
         EndProperty
         BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "修改密码"
            ImageIndex      =   7
         EndProperty
         BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "开始考试"
            ImageIndex      =   4
         EndProperty
      EndProperty
      Begin VB.TextBox Text4 
         Appearance      =   0  'Flat
         BackColor       =   &H8000000F&
         BorderStyle     =   0  'None
         Enabled         =   0   'False
         Height          =   285
         Left            =   3825
         TabIndex        =   14
         Text            =   "服务器地址:"
         Top             =   315
         Width           =   1140
      End
      Begin VB.TextBox Text3 
         Height          =   330
         Left            =   4950
         TabIndex        =   13
         Top             =   225
         Width           =   1860
      End
   End
   Begin VB.Menu MenuSystem 
      Caption         =   "系统[&S]"
      Begin VB.Menu MenuUserLogin 
         Caption         =   "重新登录[&I]"
      End
      Begin VB.Menu MenuEditPW 
         Caption         =   "密码修改[&E]"
      End
      Begin VB.Menu MenuT 
         Caption         =   "-"
      End
      Begin VB.Menu MenuExit 
         Caption         =   "退出系统"
      End
   End
   Begin VB.Menu MenuOperation 
      Caption         =   "题库操作[&O]"
      Begin VB.Menu MenuAddFillSubject 
         Caption         =   "填空题入库[&F]"
      End
      Begin VB.Menu MenuEditFillSubject 
         Caption         =   "编辑填空题库[&E]"
      End
      Begin VB.Menu MenuT2 
         Caption         =   "-"
      End
      Begin VB.Menu MenuAddSubject 
         Caption         =   "选择题入库[&S]..."
      End
      Begin VB.Menu MenuEditSubject 
         Caption         =   "编辑选择题库[&D]..."
      End
      Begin VB.Menu MenuT1 
         Caption         =   "-"
      End
      Begin VB.Menu MenuAddMultiSubject 
         Caption         =   "多项选择题入库[&M]"
      End
      Begin VB.Menu MenuEditMultiSubject 
         Caption         =   "编辑多项选择题库[&I]"
      End
      Begin VB.Menu MenuT4 
         Caption         =   "-"
      End
      Begin VB.Menu MenuAddOSubject 
         Caption         =   "操作题入库[&O]"
      End
      Begin VB.Menu MenuEditOSubject 
         Caption         =   "编辑操作题库[&T]"
      End
   End
   Begin VB.Menu MenuStudentInfo 
      Caption         =   "考生信息"
      Begin VB.Menu MenuAddStudent 
         Caption         =   "考生信息入库[&A]..."
      End
      Begin VB.Menu MenuEditStudent 
         Caption         =   "编辑考生信息[&E]..."
      End
   End
   Begin VB.Menu MenuSysUser 
      Caption         =   "系统用户"
      Begin VB.Menu MenuAddUser 
         Caption         =   "添加用户[&A]..."
      End
      Begin VB.Menu MenuEditUser 
         Caption         =   "编辑用户[&E]..."
         Visible         =   0   'False
      End
   End
   Begin VB.Menu MenuExam 
      Caption         =   "考试操作"
      Begin VB.Menu MenuSetupExamInfo 
         Caption         =   "设置考试信息[&S]..."
      End
      Begin VB.Menu MenuStartExam 
         Caption         =   "开考[&S]"
      End
   End
   Begin VB.Menu MenuHelp 
      Caption         =   "帮助[&H]"
      Begin VB.Menu MenuAboutAuthor 
         Caption         =   "关于作者[&A]..."
      End
      Begin VB.Menu MenuAboutProgram 
         Caption         =   "关于程序[&P]..."
      End
   End
End
Attribute VB_Name = "FrmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Declare Function Htmlhelp Lib "hhctrl.ocx" Alias "HtmlHelpA" (ByVal hwndCaller As Long, _
                                                                 ByVal pszFile As String, _
                                                                 ByVal uCommand As Long, _
                                                                 ByVal dwData As Any) As Long
 

Const HH_DISPLAY_TOPIC = &H0


Public HostState As Boolean '服务器状态


Public HostFileState As Boolean '文件传输服务器状态
Private TWForm As New TransWindow




Private Sub Command1_Click()
 For i = 1 To Winsock1.Count - 1
    If Winsock1(i).RemoteHostIP = Text2.Text Then
        Winsock1(i).SendData "|SendMsgs|" & Text1.Text
        Exit For
    End If
Next i
End Sub

Private Sub Command2_Click()

If MsgBox("确定要做此操作吗?这将取消 " & Label5.Caption & " 考生的考试资格", vbSystemModal + vbYesNo, "警告") = vbYes Then
    For i = 1 To Winsock1.Count - 1
        If Winsock1(i).RemoteHostIP = Text2.Text Then
            Winsock1(i).SendData "|CheatMsg|"
            Exit For
        End If
    Next i
    

End If
End Sub



Private Sub Form_Load()
'Me.Show
'TWForm.ShowForm

Call Init
End Sub



⌨️ 快捷键说明

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