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

📄 xuanke.frm

📁 用VB做的学生选课系统 .如果觉得好就顶起来哦
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form xuanke 
   Caption         =   "选修课课程信息"
   ClientHeight    =   3270
   ClientLeft      =   1470
   ClientTop       =   1515
   ClientWidth     =   6600
   LinkTopic       =   "Form2"
   MDIChild        =   -1  'True
   ScaleHeight     =   3270
   ScaleWidth      =   6600
   Begin VB.ComboBox Combo2 
      Height          =   300
      ItemData        =   "xuanke.frx":0000
      Left            =   1320
      List            =   "xuanke.frx":0016
      TabIndex        =   23
      Top             =   2760
      Width           =   2055
   End
   Begin VB.ComboBox Combo1 
      Height          =   300
      ItemData        =   "xuanke.frx":002C
      Left            =   1320
      List            =   "xuanke.frx":003C
      TabIndex        =   22
      Top             =   2280
      Width           =   2055
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Index           =   8
      Left            =   4320
      TabIndex        =   18
      Top             =   1800
      Width           =   2085
   End
   Begin VB.CommandButton Command4 
      Caption         =   "下一页"
      Height          =   315
      Left            =   5160
      TabIndex        =   17
      Top             =   2760
      Width           =   1245
   End
   Begin VB.CommandButton Command3 
      Caption         =   "上一页"
      Height          =   315
      Left            =   3600
      TabIndex        =   16
      Top             =   2760
      Width           =   1245
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Index           =   6
      Left            =   1320
      TabIndex        =   8
      Top             =   1800
      Width           =   2085
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Index           =   5
      Left            =   4380
      TabIndex        =   7
      Top             =   720
      Width           =   2085
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Index           =   4
      Left            =   1320
      TabIndex        =   6
      Top             =   1290
      Width           =   2085
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Index           =   3
      Left            =   4350
      TabIndex        =   5
      Top             =   1320
      Width           =   2085
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Index           =   2
      Left            =   4380
      TabIndex        =   4
      Top             =   210
      Width           =   2085
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Index           =   1
      Left            =   1320
      TabIndex        =   3
      Top             =   750
      Width           =   2085
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Index           =   0
      Left            =   1320
      TabIndex        =   2
      Top             =   210
      Width           =   2085
   End
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   315
      Left            =   5160
      TabIndex        =   1
      Top             =   2280
      Width           =   1245
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定选修"
      Height          =   315
      Left            =   3600
      TabIndex        =   0
      Top             =   2280
      Width           =   1245
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   3720
      Top             =   0
      Visible         =   0   'False
      Width           =   2895
      _ExtentX        =   5106
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   8
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\其他盘文件\VB\大作业\新建文件夹\user.mdb;Persist Security Info=False"
      OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\其他盘文件\VB\大作业\新建文件夹\user.mdb;Persist Security Info=False"
      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
   Begin VB.Label Label10 
      Caption         =   "班级:"
      Height          =   255
      Left            =   600
      TabIndex        =   21
      Top             =   2880
      Width           =   975
   End
   Begin VB.Label Label9 
      Caption         =   "系别:"
      Height          =   255
      Left            =   600
      TabIndex        =   20
      Top             =   2400
      Width           =   975
   End
   Begin VB.Label Label8 
      Caption         =   "姓名:"
      Height          =   255
      Left            =   3720
      TabIndex        =   19
      Top             =   1920
      Width           =   855
   End
   Begin VB.Label Label7 
      Caption         =   "授课地点:"
      Height          =   315
      Left            =   270
      TabIndex        =   15
      Top             =   1830
      Width           =   1065
   End
   Begin VB.Label Label6 
      Caption         =   "课程学分:"
      Height          =   315
      Left            =   3510
      TabIndex        =   14
      Top             =   780
      Width           =   1035
   End
   Begin VB.Label Label5 
      Caption         =   "课程总学时:"
      Height          =   255
      Left            =   180
      TabIndex        =   13
      Top             =   1350
      Width           =   1305
   End
   Begin VB.Label Label4 
      Caption         =   "周学时:"
      Height          =   285
      Left            =   3600
      TabIndex        =   12
      Top             =   1350
      Width           =   825
   End
   Begin VB.Label Label3 
      Caption         =   "教师姓名:"
      Height          =   285
      Left            =   3510
      TabIndex        =   11
      Top             =   270
      Width           =   1365
   End
   Begin VB.Label Label2 
      Caption         =   "课程名称:"
      Height          =   315
      Left            =   270
      TabIndex        =   10
      Top             =   750
      Width           =   1305
   End
   Begin VB.Label Label1 
      Caption         =   "你的学号是:"
      Height          =   285
      Left            =   270
      TabIndex        =   9
      Top             =   270
      Width           =   1215
   End
End
Attribute VB_Name = "xuanke"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Command1_Click()
If Text1(8).Text = "" Then
  MsgBox "请填写姓名"
  Exit Sub
  End If
rs1.AddNew
rs1.Fields("学号").Value = Text1(0).Text
rs1.Fields("选修").Value = Text1(1).Text
rs1.Fields("教室").Value = Text1(6).Text
rs1.Fields("系别").Value = Combo1.Text
rs1.Fields("班级").Value = Combo2.Text
rs1.Fields("姓名").Value = Text1(8).Text
rs1.MoveFirst
MsgBox "选定成功"
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Command3_Click()
rs.MovePrevious
If rs.BOF = True Then
MsgBox "这是第一条记录!"
rs.MoveNext
Else
Text1(1).Text = rs.Fields("课程名称").Value
Text1(2).Text = rs.Fields("教师姓名").Value
Text1(3).Text = rs.Fields("周学时").Value
Text1(4).Text = rs.Fields("课程总学时").Value
Text1(5).Text = rs.Fields("课程学分").Value
Text1(6).Text = rs.Fields("授课地点").Value
End If
End Sub

Private Sub Command4_Click()
rs.MoveNext
If rs.EOF = True Then
MsgBox "这是最后一条记录!"
rs.MovePrevious
Else
Text1(1).Text = rs.Fields("课程名称").Value
Text1(2).Text = rs.Fields("教师姓名").Value
Text1(3).Text = rs.Fields("周学时").Value
Text1(4).Text = rs.Fields("课程总学时").Value
Text1(5).Text = rs.Fields("课程学分").Value
Text1(6).Text = rs.Fields("授课地点").Value
End If
End Sub

Private Sub Form_Load()
Dim i As Integer
Call con
Call jl
Text1(0).Text = w
Text1(1).Text = rs.Fields("课程名称").Value
Text1(2).Text = rs.Fields("教师姓名").Value
Text1(3).Text = rs.Fields("周学时").Value
Text1(4).Text = rs.Fields("课程总学时").Value
Text1(5).Text = rs.Fields("课程学分").Value
Text1(6).Text = rs.Fields("授课地点").Value
For i = 0 To 6
   Text1(i).Locked = True
Next i
 
End Sub
   

⌨️ 快捷键说明

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