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

📄 登陆窗体.frm

📁 The crystallize of the initial study, one class examination system of calculator, everyone gives ord
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "登陆窗体"
   ClientHeight    =   8655
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   12270
   ClipControls    =   0   'False
   Icon            =   "登陆窗体.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   Picture         =   "登陆窗体.frx":038A
   ScaleHeight     =   8655
   ScaleWidth      =   12270
   StartUpPosition =   2  '屏幕中心
   Begin VB.Timer Timer1 
      Interval        =   100
      Left            =   11400
      Top             =   8040
   End
   Begin VB.Frame Frame1 
      BackColor       =   &H00FFFFFF&
      Height          =   1335
      Left            =   0
      TabIndex        =   5
      Top             =   0
      Width           =   12255
      Begin VB.Label Label9 
         BackStyle       =   0  'Transparent
         Caption         =   "考生输入正确的准考证号码后,姓名栏中如果出现你的姓名,单击进入练习按钮就可以进行考试!"
         ForeColor       =   &H00C0C0FF&
         Height          =   735
         Left            =   9240
         TabIndex        =   11
         Top             =   360
         Width           =   2775
      End
      Begin VB.Label Label8 
         BackStyle       =   0  'Transparent
         Caption         =   "说明:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H000000FF&
         Height          =   255
         Left            =   2040
         TabIndex        =   10
         Top             =   1080
         Width           =   615
      End
      Begin VB.Label Label6 
         BackStyle       =   0  'Transparent
         Caption         =   "23111100101--23111100120"
         ForeColor       =   &H000000FF&
         Height          =   255
         Left            =   5280
         TabIndex        =   9
         Top             =   1080
         Width           =   2295
      End
      Begin VB.Label Label5 
         BackStyle       =   0  'Transparent
         Caption         =   "本考试系统准考证号码为:"
         ForeColor       =   &H000000FF&
         Height          =   255
         Left            =   3000
         TabIndex        =   8
         Top             =   1080
         Width           =   2175
      End
      Begin VB.Label Label4 
         BackStyle       =   0  'Transparent
         Caption         =   "安徽电子信息职业技术学院计算机一级考试系统"
         BeginProperty Font 
            Name            =   "华文中宋"
            Size            =   12
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H000000FF&
         Height          =   615
         Left            =   240
         TabIndex        =   7
         Top             =   240
         Width           =   5535
      End
   End
   Begin VB.CommandButton Command2 
      Caption         =   "退  出"
      Height          =   495
      Left            =   9720
      Style           =   1  'Graphical
      TabIndex        =   2
      Top             =   6960
      Width           =   1335
   End
   Begin VB.CommandButton Command1 
      Caption         =   "进入"
      Height          =   495
      Left            =   7200
      Style           =   1  'Graphical
      TabIndex        =   1
      Top             =   6960
      Width           =   1335
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   1440
      MaxLength       =   11
      TabIndex        =   0
      Top             =   6960
      Width           =   1335
   End
   Begin VB.Label Label10 
      BorderStyle     =   1  'Fixed Single
      Height          =   375
      Left            =   4200
      TabIndex        =   12
      Top             =   6960
      Width           =   1575
   End
   Begin VB.Label Label3 
      AutoSize        =   -1  'True
      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       =   &H00C00000&
      Height          =   285
      Left            =   120
      TabIndex        =   6
      Top             =   6120
      Width           =   3600
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "姓  名:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00C000C0&
      Height          =   210
      Left            =   3120
      TabIndex        =   4
      Top             =   6960
      Width           =   915
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "准考证号:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00C000C0&
      Height          =   210
      Left            =   240
      TabIndex        =   3
      Top             =   6960
      Width           =   1125
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Command1_Click()
    Dim testnum As String
    Dim x As String
    Dim name As String
    Dim id As String '表名称
    Dim ssearch1 As String
    Dim strcmm As String
    '#######################################随机抽卷
    Randomize
    q = Int((5 - 1 + 1) * Rnd + 1) '产生1-5之间的随即整数
    
    If Len(Trim(Text1.Text)) = 0 Then
        MsgBox "准考证号码不能为空!"
        Exit Sub
    End If
    
    If Not IsNumeric(Text1) Then
        MsgBox ("请输入数字!")
        Text1.Text = ""
        Text1.SetFocus
        Label10.Caption = ""
        Exit Sub
    End If
    '=============================
    On Error GoTo err_sel:
    
    ssearch1 = "select * from 考生信息表 where zkzh='" & Trim(Text1.Text) & "'"
        cnn.Open strcnn
        rs.Open ssearch1, cnn
    If rs.BOF Or rs.EOF Then
        MsgBox "你输入的准考证号码不正确,请重新输入"

⌨️ 快捷键说明

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