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

📄 form2.frm

📁 学籍信息管理系统 基本的学生管理功能都实现了
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Form2 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "新用户注册"
   ClientHeight    =   2835
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   5970
   LinkTopic       =   "Form2"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2835
   ScaleWidth      =   5970
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   375
      Left            =   3840
      Top             =   1710
      Visible         =   0   'False
      Width           =   1905
      _ExtentX        =   3360
      _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         =   ""
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   ""
      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.CommandButton Command2 
      Caption         =   "取 消"
      Height          =   315
      Left            =   3090
      TabIndex        =   11
      Top             =   2310
      Width           =   1035
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确 定"
      Default         =   -1  'True
      Height          =   315
      Left            =   1530
      TabIndex        =   10
      Top             =   2310
      Width           =   1035
   End
   Begin VB.TextBox Text3 
      DataSource      =   "Adodc1"
      Height          =   315
      IMEMode         =   3  'DISABLE
      Left            =   1710
      PasswordChar    =   "*"
      TabIndex        =   7
      Top             =   1770
      Width           =   1755
   End
   Begin VB.TextBox Text2 
      DataSource      =   "Adodc1"
      Height          =   315
      IMEMode         =   3  'DISABLE
      Left            =   1710
      PasswordChar    =   "*"
      TabIndex        =   6
      Top             =   1320
      Width           =   1755
   End
   Begin VB.TextBox Text1 
      DataSource      =   "Adodc1"
      Height          =   315
      Left            =   1710
      TabIndex        =   5
      Top             =   840
      Width           =   1755
   End
   Begin VB.Label Label7 
      Caption         =   "(长度小于8个字符)"
      ForeColor       =   &H80000015&
      Height          =   285
      Left            =   3600
      TabIndex        =   9
      Top             =   1380
      Width           =   2025
   End
   Begin VB.Label Label6 
      Caption         =   "(长度小于8个字符)"
      ForeColor       =   &H80000015&
      Height          =   315
      Left            =   3600
      TabIndex        =   8
      Top             =   900
      Width           =   1875
   End
   Begin VB.Label Label5 
      Caption         =   "重复密码:"
      Height          =   225
      Left            =   660
      TabIndex        =   4
      Top             =   1830
      Width           =   975
   End
   Begin VB.Label Label4 
      Caption         =   "密    码:"
      Height          =   225
      Left            =   660
      TabIndex        =   3
      Top             =   1380
      Width           =   975
   End
   Begin VB.Label Label3 
      Caption         =   "用 户 名:"
      Height          =   225
      Left            =   660
      TabIndex        =   2
      Top             =   900
      Width           =   975
   End
   Begin VB.Label Label2 
      Caption         =   "用户注册"
      Height          =   255
      Left            =   4290
      TabIndex        =   1
      Top             =   390
      Width           =   1185
   End
   Begin VB.Line Line1 
      BorderColor     =   &H00FF0000&
      X1              =   540
      X2              =   5370
      Y1              =   690
      Y2              =   690
   End
   Begin VB.Label Label1 
      Caption         =   "学籍管理系统"
      BeginProperty Font 
         Name            =   "黑体"
         Size            =   18
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00000000&
      Height          =   435
      Left            =   1440
      TabIndex        =   0
      Top             =   210
      Width           =   2655
   End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Command1_Click()
If Text2.Text <> Text3.Text Then
MsgBox "两次输入的密码不一致,请重新输入!", vbInformation + vbOKOnly, "提示"
Else
Adodc1.Recordset.AddNew
Adodc1.Recordset.Fields(0) = Text1.Text
Adodc1.Recordset.Fields(1) = Text2.Text
Adodc1.Recordset.Update
End If
End
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Form_Load()
Dim sql As String
Form2.Icon = LoadPicture(App.Path + "\tupian\1.ico")
Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\db1.mdb"
Adodc1.CommandType = adCmdText
sql = "select * from yonghu"
Adodc1.RecordSource = sql
Adodc1.Refresh
End Sub

⌨️ 快捷键说明

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