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

📄 addteacher.frm

📁 用VB做的学生选课系统 .如果觉得好就顶起来哦
💻 FRM
字号:
VERSION 5.00
Begin VB.Form addteacher 
   BackColor       =   &H8000000D&
   Caption         =   "添加教师信息"
   ClientHeight    =   2700
   ClientLeft      =   6765
   ClientTop       =   4320
   ClientWidth     =   3390
   LinkTopic       =   "Form2"
   MDIChild        =   -1  'True
   ScaleHeight     =   2700
   ScaleWidth      =   3390
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   375
      Left            =   1620
      TabIndex        =   11
      Top             =   2010
      Width           =   1275
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   345
      Left            =   150
      TabIndex        =   10
      Top             =   2040
      Width           =   1125
   End
   Begin VB.TextBox Text5 
      Height          =   285
      Left            =   780
      TabIndex        =   9
      Top             =   1500
      Width           =   1515
   End
   Begin VB.TextBox Text4 
      Height          =   255
      Left            =   780
      TabIndex        =   8
      Top             =   1140
      Width           =   1515
   End
   Begin VB.TextBox Text3 
      Height          =   255
      Left            =   780
      TabIndex        =   7
      Top             =   810
      Width           =   1515
   End
   Begin VB.TextBox Text2 
      Height          =   255
      Left            =   780
      TabIndex        =   6
      Top             =   450
      Width           =   1515
   End
   Begin VB.TextBox Text1 
      Height          =   270
      Left            =   780
      TabIndex        =   5
      Top             =   90
      Width           =   1515
   End
   Begin VB.Label Label5 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "电话"
      Height          =   180
      Left            =   360
      TabIndex        =   4
      Top             =   1560
      Width           =   360
   End
   Begin VB.Label Label4 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "职务"
      Height          =   180
      Left            =   360
      TabIndex        =   3
      Top             =   1200
      Width           =   360
   End
   Begin VB.Label Label3 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "性别"
      Height          =   180
      Left            =   360
      TabIndex        =   2
      Top             =   840
      Width           =   360
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "教师姓名"
      Height          =   180
      Left            =   0
      TabIndex        =   1
      Top             =   480
      Width           =   720
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "教师编号"
      Height          =   180
      Left            =   0
      TabIndex        =   0
      Top             =   120
      Width           =   720
   End
End
Attribute VB_Name = "addteacher"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
teach.Adodc1.Recordset.MoveLast
teach.Adodc1.Recordset.AddNew
teach.Adodc1.Recordset("教师编号") = Text1.Text
teach.Adodc1.Recordset("教师姓名") = Text2.Text
teach.Adodc1.Recordset("性别") = Text3.Text
teach.Adodc1.Recordset("职务") = Text4.Text
teach.Adodc1.Recordset("电话") = Text5.Text
teach.Adodc1.Recordset.Update
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

⌨️ 快捷键说明

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