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

📄 frmnum.frm

📁 VB开发的考试系统,找了好久,希望有帮助,大家看看啊
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmNum 
   BackColor       =   &H000080FF&
   Caption         =   "请输入试卷号"
   ClientHeight    =   1395
   ClientLeft      =   5085
   ClientTop       =   2985
   ClientWidth     =   3045
   ControlBox      =   0   'False
   LinkTopic       =   "Form1"
   ScaleHeight     =   1395
   ScaleWidth      =   3045
   Begin VB.CommandButton cmdEnd 
      BackColor       =   &H0000C0C0&
      Caption         =   "放弃"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   1620
      Style           =   1  'Graphical
      TabIndex        =   2
      Top             =   900
      Width           =   1140
   End
   Begin VB.CommandButton cmdOK 
      BackColor       =   &H0000C0C0&
      Caption         =   "确定"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   315
      Style           =   1  'Graphical
      TabIndex        =   1
      Top             =   900
      Width           =   1140
   End
   Begin VB.TextBox txtNum 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   330
      Left            =   495
      TabIndex        =   0
      Top             =   405
      Width           =   2130
   End
   Begin VB.Label lblNum 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "1---"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   180
      Left            =   360
      TabIndex        =   3
      Top             =   90
      Width           =   360
   End
End
Attribute VB_Name = "frmNum"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub cmdOK_Click()
numEJH = Val(txtNum.Text)
frmTime.Show
frmExam.Show
Unload Me

End Sub

Private Sub Form_Load()
lblNum.Caption = "请输入从1到" & numJH & "的数"
End Sub

Private Sub txtNum_Change()
If IsNumeric(txtNum.Text) = False And txtNum.Text <> "" Then
 MsgBox "只能输入数字!", , "提示"
 txtNum.SelStart = 0
 txtNum.SelLength = Len(txtNum.Text)
 txtNum.SetFocus
End If

End Sub

Private Sub txtNum_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
 cmdOK_Click
End If
End Sub

⌨️ 快捷键说明

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