shiti.frm

来自「试卷生成和评分系统 试卷生成和评分系统」· FRM 代码 · 共 89 行

FRM
89
字号
VERSION 5.00
Begin VB.Form shiti 
   Caption         =   "试题选择"
   ClientHeight    =   2145
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   4275
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   ScaleHeight     =   2145
   ScaleWidth      =   4275
   StartUpPosition =   2  '屏幕中心
   Begin VB.Frame Frame1 
      Caption         =   "试题选择"
      Height          =   2055
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   4215
      Begin VB.TextBox Text1 
         Height          =   270
         Left            =   1080
         TabIndex        =   5
         Top             =   240
         Visible         =   0   'False
         Width           =   735
      End
      Begin VB.CommandButton Command2 
         Caption         =   "取消"
         Height          =   375
         Left            =   2400
         TabIndex        =   4
         Top             =   1440
         Width           =   1095
      End
      Begin VB.CommandButton Command1 
         Caption         =   "确定"
         Height          =   375
         Left            =   480
         TabIndex        =   3
         Top             =   1440
         Width           =   1095
      End
      Begin VB.ComboBox Combo1 
         Height          =   300
         Left            =   2280
         TabIndex        =   2
         Top             =   600
         Width           =   1335
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "请选择考试试卷"
         Height          =   180
         Left            =   480
         TabIndex        =   1
         Top             =   600
         Width           =   1260
      End
   End
End
Attribute VB_Name = "shiti"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim mrc As ADODB.Recordset

Private Sub Command1_Click()
    Text1.Text = Combo1.Text
    SaveSetting "试卷生成和评分系统", "系统设置", "Btime", Combo1.Text
    Unload Me
End Sub

Private Sub Command2_Click()
    Unload Me
End Sub

Private Sub Form_Load()
    txtsql = "select 试卷号 from 试卷"
    Set mrc = exesql(txtsql)
    On Error Resume Next
    For i = 1 To mrc.RecordCount
        Combo1.AddItem mrc("试卷号")
        mrc.MoveNext
    Next i
    Combo1.Text = GetSetting("试卷生成和评分系统", "系统设置", "Btime", Text1)
End Sub

⌨️ 快捷键说明

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