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

📄 addstu.frm

📁 用VB做的学生选课系统 .如果觉得好就顶起来哦
💻 FRM
字号:
VERSION 5.00
Begin VB.Form addstu 
   BorderStyle     =   4  'Fixed ToolWindow
   Caption         =   "添加学生信息"
   ClientHeight    =   4350
   ClientLeft      =   8475
   ClientTop       =   3720
   ClientWidth     =   4275
   LinkTopic       =   "Form2"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   4350
   ScaleWidth      =   4275
   ShowInTaskbar   =   0   'False
   Begin VB.Frame Frame1 
      Caption         =   "添加学生信息"
      Height          =   4215
      Left            =   30
      TabIndex        =   0
      Top             =   30
      Width           =   4155
      Begin VB.CommandButton Command2 
         Caption         =   "关闭"
         Height          =   315
         Left            =   2220
         TabIndex        =   18
         Top             =   3300
         Width           =   1125
      End
      Begin VB.CommandButton Command1 
         Caption         =   "确定"
         Height          =   315
         Left            =   630
         TabIndex        =   17
         Top             =   3300
         Width           =   1125
      End
      Begin VB.TextBox Text8 
         Height          =   285
         Left            =   930
         TabIndex        =   16
         Top             =   2640
         Width           =   2445
      End
      Begin VB.TextBox Text7 
         Height          =   285
         Left            =   930
         TabIndex        =   15
         Top             =   2307
         Width           =   2055
      End
      Begin VB.TextBox Text6 
         Height          =   285
         Left            =   930
         TabIndex        =   14
         Top             =   1980
         Width           =   2025
      End
      Begin VB.TextBox Text5 
         Height          =   285
         Left            =   930
         TabIndex        =   13
         Top             =   1653
         Width           =   1755
      End
      Begin VB.TextBox Text4 
         Height          =   315
         Left            =   930
         TabIndex        =   12
         Top             =   1296
         Width           =   2145
      End
      Begin VB.TextBox Text3 
         Height          =   270
         Left            =   930
         TabIndex        =   11
         Top             =   984
         Width           =   2115
      End
      Begin VB.TextBox Text2 
         Height          =   270
         Left            =   930
         TabIndex        =   10
         Top             =   672
         Width           =   2085
      End
      Begin VB.TextBox Text1 
         Height          =   270
         Left            =   930
         TabIndex        =   9
         Top             =   360
         Width           =   2085
      End
      Begin VB.Label Label8 
         AutoSize        =   -1  'True
         Caption         =   "家庭住址"
         Height          =   180
         Left            =   30
         TabIndex        =   8
         Top             =   2670
         Width           =   720
      End
      Begin VB.Label Label7 
         AutoSize        =   -1  'True
         Caption         =   "入学时间"
         Height          =   180
         Left            =   60
         TabIndex        =   7
         Top             =   2340
         Width           =   720
      End
      Begin VB.Label Label6 
         AutoSize        =   -1  'True
         Caption         =   "出生年月"
         Height          =   180
         Left            =   60
         TabIndex        =   6
         Top             =   2015
         Width           =   720
      End
      Begin VB.Label Label5 
         AutoSize        =   -1  'True
         Caption         =   "性别"
         Height          =   180
         Left            =   390
         TabIndex        =   5
         Top             =   1690
         Width           =   360
      End
      Begin VB.Label Label4 
         AutoSize        =   -1  'True
         Caption         =   "班级"
         Height          =   180
         Left            =   390
         TabIndex        =   4
         Top             =   1365
         Width           =   360
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         Caption         =   "系别"
         Height          =   180
         Left            =   390
         TabIndex        =   3
         Top             =   1040
         Width           =   360
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "学生姓名"
         Height          =   180
         Left            =   60
         TabIndex        =   2
         Top             =   715
         Width           =   720
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "学号"
         Height          =   180
         Left            =   420
         TabIndex        =   1
         Top             =   390
         Width           =   360
      End
   End
End
Attribute VB_Name = "addstu"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
stuin.Adodc1.Recordset.MoveLast
stuin.Adodc1.Recordset.AddNew
stuin.Adodc1.Recordset("学号") = Text1.Text
stuin.Adodc1.Recordset("学生姓名") = Text2.Text
stuin.Adodc1.Recordset("系别") = Text3.Text
stuin.Adodc1.Recordset("班级") = Text4.Text
stuin.Adodc1.Recordset("性别") = Text5.Text
stuin.Adodc1.Recordset("出生年月") = Text6.Text
stuin.Adodc1.Recordset("入学时间") = Text7.Text
stuin.Adodc1.Recordset("家庭住址") = Text8.Text
stuin.Adodc1.Recordset.Update
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

⌨️ 快捷键说明

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