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

📄 form6.frm

📁 这是朋友一起做的 这是一个关于学生成绩管理系统的VS程序 谢谢大家提意见
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form Form6 
   BackColor       =   &H00FFC0C0&
   Caption         =   "课程信息管理"
   ClientHeight    =   4695
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   7260
   LinkTopic       =   "Form6"
   ScaleHeight     =   4695
   ScaleWidth      =   7260
   StartUpPosition =   3  '窗口缺省
   Begin VB.TextBox Text3 
      DataField       =   "courseid"
      DataSource      =   "Adodc1"
      Height          =   270
      Left            =   3000
      TabIndex        =   13
      Text            =   "Text3"
      Top             =   6360
      Visible         =   0   'False
      Width           =   615
   End
   Begin VB.Frame Frame3 
      BackColor       =   &H00FFC0C0&
      Caption         =   "Frame3"
      Height          =   1815
      Left            =   3600
      TabIndex        =   7
      Top             =   2640
      Width           =   3495
      Begin VB.CommandButton Command6 
         BackColor       =   &H00E0E0E0&
         Caption         =   "查询"
         Height          =   375
         Left            =   1920
         Style           =   1  'Graphical
         TabIndex        =   14
         Top             =   1320
         Width           =   1095
      End
      Begin VB.CommandButton Command5 
         BackColor       =   &H00E0E0E0&
         Caption         =   "修改"
         Height          =   375
         Left            =   240
         Style           =   1  'Graphical
         TabIndex        =   12
         Top             =   1320
         Width           =   1095
      End
      Begin VB.CommandButton Command4 
         BackColor       =   &H00E0E0E0&
         Caption         =   "删除"
         Height          =   375
         Left            =   1920
         Style           =   1  'Graphical
         TabIndex        =   11
         Top             =   840
         Width           =   1095
      End
      Begin VB.CommandButton Command3 
         BackColor       =   &H00E0E0E0&
         Caption         =   "加入"
         Height          =   375
         Left            =   240
         Style           =   1  'Graphical
         TabIndex        =   10
         Top             =   840
         Width           =   1095
      End
      Begin VB.TextBox Text2 
         Height          =   270
         Left            =   1800
         TabIndex        =   9
         Top             =   360
         Width           =   1095
      End
      Begin VB.Label Label2 
         BackColor       =   &H00FFC0C0&
         Caption         =   "课程号"
         Height          =   255
         Left            =   600
         TabIndex        =   8
         Top             =   360
         Width           =   615
      End
   End
   Begin VB.Frame Frame2 
      BackColor       =   &H00FFC0C0&
      Caption         =   "查询选课信息"
      Height          =   1815
      Left            =   360
      TabIndex        =   2
      Top             =   2640
      Width           =   2895
      Begin VB.CommandButton Command2 
         BackColor       =   &H00E0E0E0&
         Caption         =   "查询学生"
         Height          =   375
         Left            =   960
         Style           =   1  'Graphical
         TabIndex        =   6
         Top             =   1320
         Width           =   1095
      End
      Begin VB.CommandButton Command1 
         BackColor       =   &H00E0E0E0&
         Caption         =   "查询班级"
         Height          =   375
         Left            =   960
         Style           =   1  'Graphical
         TabIndex        =   5
         Top             =   720
         Width           =   1095
      End
      Begin VB.TextBox Text1 
         Height          =   270
         Left            =   960
         TabIndex        =   4
         Top             =   360
         Width           =   1095
      End
      Begin VB.Label Label1 
         BackColor       =   &H00FFC0C0&
         Caption         =   "课程号"
         Height          =   255
         Left            =   120
         TabIndex        =   3
         Top             =   360
         Width           =   615
      End
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   375
      Left            =   480
      Top             =   6000
      Visible         =   0   'False
      Width           =   2535
      _ExtentX        =   4471
      _ExtentY        =   661
      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.3.51;Persist Security Info=False;Data Source=db1.mdb"
      OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=db1.mdb"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "select * from course"
      Caption         =   "Adodc1"
      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.Frame Frame1 
      BackColor       =   &H00FFC0C0&
      Caption         =   "显示"
      Height          =   2055
      Left            =   360
      TabIndex        =   0
      Top             =   360
      Width           =   6735
      Begin MSDataGridLib.DataGrid DataGrid1 
         Bindings        =   "Form6.frx":0000
         Height          =   1455
         Left            =   240
         TabIndex        =   1
         Top             =   240
         Width           =   6375
         _ExtentX        =   11245
         _ExtentY        =   2566
         _Version        =   393216
         HeadLines       =   1
         RowHeight       =   15
         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       =   ""
            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       =   ""
            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 
            BeginProperty Column00 
            EndProperty
            BeginProperty Column01 
            EndProperty
         EndProperty
      End
   End
End
Attribute VB_Name = "Form6"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Text1.Text = "" Then
MsgBox "请输入课程号"
Exit Sub
End If
Form12.Show
End Sub

Private Sub Command2_Click()
If Text1.Text = "" Then
MsgBox "请输入课程号"
Exit Sub
End If
Form13.Show
End Sub

Private Sub Command3_Click()
Adodc1.Recordset.MoveLast
Adodc1.Recordset.MoveNext
Adodc1.Recordset.AddNew
DataGrid1.Refresh
End Sub

Private Sub Command4_Click()
If Text2.Text = "" Then
MsgBox "请输入课程号"
Exit Sub
End If
Adodc1.Recordset.MoveFirst
Do
    If Text2.Text = Text3.Text Then
    Exit Do
    End If
   Adodc1.Recordset.MoveNext
  Loop
  Adodc1.Recordset.Delete

End Sub

Private Sub Command5_Click()
If Text2.Text = "" Then
MsgBox "请输入课程号"
Exit Sub
End If
Adodc1.Recordset.MoveFirst
Do
    If Text2.Text = Text3.Text Then
    Exit Do
    End If
   Adodc1.Recordset.MoveNext
  Loop
End Sub

Private Sub Command6_Click()
If Text2.Text = "" Then
MsgBox "请输入课程号"
Exit Sub
End If
Adodc1.Recordset.MoveFirst
Do
    If Text2.Text = Text3.Text Then
    Exit Do
    End If
   Adodc1.Recordset.MoveNext
  Loop
End Sub

⌨️ 快捷键说明

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