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

📄 frmjianda.frm

📁 vb试卷生成系统!能够生成8开vb考试试卷
💻 FRM
📖 第 1 页 / 共 3 页
字号:
            Left            =   180
            Style           =   1  'Graphical
            TabIndex        =   26
            TabStop         =   0   'False
            Top             =   210
            Width           =   795
         End
         Begin MSAdodcLib.Adodc adodc1 
            Height          =   375
            Left            =   2010
            Top             =   210
            Visible         =   0   'False
            Width           =   2325
            _ExtentX        =   4101
            _ExtentY        =   661
            ConnectMode     =   0
            CursorLocation  =   3
            IsolationLevel  =   -1
            ConnectionTimeout=   15
            CommandTimeout  =   30
            CursorType      =   3
            LockType        =   3
            CommandType     =   2
            CursorOptions   =   0
            CacheSize       =   50
            MaxRecords      =   0
            BOFAction       =   0
            EOFAction       =   0
            ConnectStringType=   1
            Appearance      =   1
            BackColor       =   -2147483643
            ForeColor       =   -2147483640
            Orientation     =   0
            Enabled         =   -1
            Connect         =   ""
            OLEDBString     =   ""
            OLEDBFile       =   ""
            DataSourceName  =   ""
            OtherAttributes =   ""
            UserName        =   ""
            Password        =   ""
            RecordSource    =   ""
            Caption         =   " 记录导航条"
            BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "宋体"
               Size            =   9
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            _Version        =   393216
         End
      End
      Begin VB.Frame Frame6 
         BackColor       =   &H00C0C0C0&
         Caption         =   "查找(&F)"
         Height          =   1965
         Left            =   8310
         TabIndex        =   9
         Top             =   1380
         Width           =   2925
         Begin VB.ComboBox Combo2 
            Height          =   300
            Index           =   0
            ItemData        =   "frmjianda.frx":0462
            Left            =   600
            List            =   "frmjianda.frx":046F
            TabIndex        =   11
            Text            =   "="
            Top             =   420
            Width           =   735
         End
         Begin VB.TextBox Text5 
            Height          =   315
            Left            =   1410
            TabIndex        =   12
            Top             =   420
            Width           =   1335
         End
         Begin VB.ComboBox Combo2 
            Height          =   300
            Index           =   1
            ItemData        =   "frmjianda.frx":0482
            Left            =   600
            List            =   "frmjianda.frx":048F
            TabIndex        =   14
            Text            =   "="
            Top             =   930
            Width           =   735
         End
         Begin VB.TextBox Text6 
            Height          =   315
            Left            =   1410
            TabIndex        =   15
            Top             =   930
            Width           =   1335
         End
         Begin VB.CommandButton Command9 
            BackColor       =   &H00C0C0C0&
            Caption         =   "上一条"
            Height          =   345
            Left            =   270
            Style           =   1  'Graphical
            TabIndex        =   16
            Top             =   1440
            Width           =   1065
         End
         Begin VB.CommandButton Command10 
            BackColor       =   &H00C0C0C0&
            Caption         =   "下一条"
            Height          =   345
            Left            =   1620
            Style           =   1  'Graphical
            TabIndex        =   17
            Top             =   1440
            Width           =   1065
         End
         Begin VB.Label Label2 
            BackColor       =   &H00C0C0C0&
            Caption         =   "题目"
            Height          =   225
            Left            =   150
            TabIndex        =   10
            Top             =   480
            Width           =   375
         End
         Begin VB.Label Label3 
            BackColor       =   &H00C0C0C0&
            Caption         =   "答案"
            Height          =   255
            Left            =   150
            TabIndex        =   13
            Top             =   990
            Width           =   435
         End
      End
      Begin MSDataGridLib.DataGrid DataGrid1 
         Bindings        =   "frmjianda.frx":04A2
         Height          =   3045
         Left            =   270
         TabIndex        =   29
         TabStop         =   0   'False
         Top             =   3420
         Width           =   10965
         _ExtentX        =   19341
         _ExtentY        =   5371
         _Version        =   393216
         AllowUpdate     =   0   'False
         Enabled         =   -1  'True
         HeadLines       =   1
         RowHeight       =   15
         FormatLocked    =   -1  'True
         AllowDelete     =   -1  'True
         BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ColumnCount     =   2
         BeginProperty Column00 
            DataField       =   "neirong"
            Caption         =   "题目"
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
               Type            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   2052
               SubFormatType   =   0
            EndProperty
         EndProperty
         BeginProperty Column01 
            DataField       =   "daan"
            Caption         =   "答案"
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
               Type            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   2052
               SubFormatType   =   0
            EndProperty
         EndProperty
         SplitCount      =   1
         BeginProperty Split0 
            ScrollBars      =   2
            ScrollGroup     =   2
            BeginProperty Column00 
               Locked          =   -1  'True
               ColumnWidth     =   7409.764
            EndProperty
            BeginProperty Column01 
               ColumnWidth     =   2954.835
            EndProperty
         EndProperty
      End
      Begin MSAdodcLib.Adodc Adodc4 
         Height          =   375
         Left            =   2010
         Top             =   90
         Visible         =   0   'False
         Width           =   2325
         _ExtentX        =   4101
         _ExtentY        =   661
         ConnectMode     =   0
         CursorLocation  =   3
         IsolationLevel  =   -1
         ConnectionTimeout=   15
         CommandTimeout  =   30
         CursorType      =   3
         LockType        =   3
         CommandType     =   1
         CursorOptions   =   0
         CacheSize       =   50
         MaxRecords      =   0
         BOFAction       =   0
         EOFAction       =   0
         ConnectStringType=   1
         Appearance      =   1
         BackColor       =   -2147483643
         ForeColor       =   -2147483640
         Orientation     =   0
         Enabled         =   -1
         Connect         =   ""
         OLEDBString     =   ""
         OLEDBFile       =   ""
         DataSourceName  =   ""
         OtherAttributes =   ""
         UserName        =   ""
         Password        =   ""
         RecordSource    =   ""
         Caption         =   "更新时用"
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         _Version        =   393216
      End
   End
End
Attribute VB_Name = "frmjianda"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public presskey As String
Private Sub Combo1_Click()
presskey = "换表"
Dim linkku As String
linkku = "jiandati" + Trim(Str(Combo1.ListIndex + 1))
adodc1.RecordSource = linkku
adodc1.Refresh
If Combo1.ListIndex > 1 Then
    Frame3.Caption = "程序设计...难度" + Trim(Str(Combo1.ListIndex - 1))
Else
    Frame3.Caption = "基础简答...难度" + Trim(Str(Combo1.ListIndex + 1))
End If
recordc2 = adodc1.Recordset.RecordCount
If recordc2 <> 0 Then
    recordnum2 = 1
    stats = "当前记录:" + Str(recordnum2) + "/" + Str(recordc2) + "    浏览状态"
Else
    recordnum2 = 0
    stats = "当前记录:BOF/EOF   (空库,无记录)"
End If
fMainForm.sbStatusBar.Panels(1).Text = stats
End Sub

Private Sub Combo1_KeyPress(KeyAscii As Integer)
Combo1_Click
End Sub

Private Sub Command1_Click()
Dim spos, lens, textlen As Integer
Dim te As String
spos = Text3.SelStart
lens = Text3.SelLength
textlen = Len(Text3.Text)
Text3.Text = Mid(Text3.Text, 1, spos) + "_" + Mid(Text3.Text, spos + lens + 1, textlen - spos - lens + 1)
Text3.SetFocus
Text3.SelStart = spos + 1
End Sub

Private Sub Command10_Click()
If recordnum2 = recordc2 Then
    MsgBox "己到记录尾", vbInformation, "查询"
Else
For i = recordnum2 + 1 To recordc2
    Command13_Click
    lookfor
    If find1 And find2 Then
        Exit Sub
    End If
    If i = recordc2 Then
        MsgBox "没有找到符合条件的记录!", vbInformation, "无此记录"
    End If
Next i
End If
End Sub

Private Sub Command11_Click()
presskey = "移动"
If Text1.Text = "" Or recordc2 = 1 Then
Else
    If recordc2 >= 1 Then
        recordnum2 = 1
    Else
        recordnum2 = 0
    End If
    adodc1.Recordset.MoveFirst
End If
stats = "当前记录:" + Str(recordnum2) + "/" + Str(recordc2) + "    浏览状态"
fMainForm.sbStatusBar.Panels(1).Text = stats
End Sub

Private Sub Command12_Click()
presskey = "移动"
If Text1.Text = "" Or recordc2 = 1 Then
Else
    recordnum2 = recordnum2 - 1
    adodc1.Recordset.MovePrevious
    If Text1.Text = "" Then
        adodc1.Recordset.MoveNext
        recordnum2 = recordnum2 + 1
    End If
End If
stats = "当前记录:" + Str(recordnum2) + "/" + Str(recordc2) + "    浏览状态"
fMainForm.sbStatusBar.Panels(1).Text = stats
End Sub

Private Sub Command13_Click()
presskey = "移动"
If Text1.Text = "" Or recordc2 = 1 Then
Else
    recordnum2 = recordnum2 + 1
    adodc1.Recordset.MoveNext
    If Text1.Text = "" Then
        adodc1.Recordset.MovePrevious
        recordnum2 = recordnum2 - 1
    End If
End If
stats = "当前记录:" + Str(recordnum2) + "/" + Str(recordc2) + "    浏览状态"
fMainForm.sbStatusBar.Panels(1).Text = stats
End Sub

⌨️ 快捷键说明

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