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

📄 frm_add.vb

📁 一个用VB.NET做的图书管理系统,功能比较简单
💻 VB
📖 第 1 页 / 共 2 页
字号:
Imports System.Data.OleDb
Imports System.DateTime
Imports System.Math
Public Class frm_Add
    Inherits System.Windows.Forms.Form
    Dim MyConnection As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Application.StartupPath & "\Library.mdb")
    Dim MyCommand As OleDbCommand
    Friend WithEvents TxtPassword As System.Windows.Forms.TextBox
    Friend WithEvents Label4 As System.Windows.Forms.Label
    Dim MyReader As OleDbDataReader
#Region " Windows Form Designer generated code "

    Public Sub New()
        MyBase.New()

        'This call is required by the Windows Form Designer.
        InitializeComponent()

        'Add any initialization after the InitializeComponent() call

    End Sub

    'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
    Friend WithEvents Label1 As System.Windows.Forms.Label
    Friend WithEvents TxtUserID As System.Windows.Forms.TextBox
    Friend WithEvents Label2 As System.Windows.Forms.Label
    Friend WithEvents TxtUserName As System.Windows.Forms.TextBox
    Friend WithEvents Label3 As System.Windows.Forms.Label
    Friend WithEvents TxtCurrentAddress As System.Windows.Forms.TextBox
    Friend WithEvents Label5 As System.Windows.Forms.Label
    Friend WithEvents TxtPhone As System.Windows.Forms.TextBox
    Friend WithEvents Label6 As System.Windows.Forms.Label
    Friend WithEvents TxtCellPhone As System.Windows.Forms.TextBox
    Friend WithEvents Label7 As System.Windows.Forms.Label
    Friend WithEvents TxtEmail As System.Windows.Forms.TextBox
    Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox
    Friend WithEvents Label8 As System.Windows.Forms.Label
    Friend WithEvents Label9 As System.Windows.Forms.Label
    Friend WithEvents Label10 As System.Windows.Forms.Label
    Friend WithEvents ComboAdmin As System.Windows.Forms.ComboBox
    Friend WithEvents ComboLib As System.Windows.Forms.ComboBox
    Friend WithEvents ComboGeneral As System.Windows.Forms.ComboBox
    Friend WithEvents BtnAdd As System.Windows.Forms.Button
    Friend WithEvents Button2 As System.Windows.Forms.Button
    Friend WithEvents Button3 As System.Windows.Forms.Button
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(frm_Add))
        Me.GroupBox1 = New System.Windows.Forms.GroupBox
        Me.TxtEmail = New System.Windows.Forms.TextBox
        Me.Label7 = New System.Windows.Forms.Label
        Me.TxtCellPhone = New System.Windows.Forms.TextBox
        Me.Label6 = New System.Windows.Forms.Label
        Me.TxtPhone = New System.Windows.Forms.TextBox
        Me.Label5 = New System.Windows.Forms.Label
        Me.Label3 = New System.Windows.Forms.Label
        Me.TxtUserName = New System.Windows.Forms.TextBox
        Me.Label2 = New System.Windows.Forms.Label
        Me.TxtCurrentAddress = New System.Windows.Forms.TextBox
        Me.Label1 = New System.Windows.Forms.Label
        Me.TxtUserID = New System.Windows.Forms.TextBox
        Me.GroupBox2 = New System.Windows.Forms.GroupBox
        Me.ComboGeneral = New System.Windows.Forms.ComboBox
        Me.ComboLib = New System.Windows.Forms.ComboBox
        Me.ComboAdmin = New System.Windows.Forms.ComboBox
        Me.Label10 = New System.Windows.Forms.Label
        Me.Label9 = New System.Windows.Forms.Label
        Me.Label8 = New System.Windows.Forms.Label
        Me.BtnAdd = New System.Windows.Forms.Button
        Me.Button2 = New System.Windows.Forms.Button
        Me.Button3 = New System.Windows.Forms.Button
        Me.Label4 = New System.Windows.Forms.Label
        Me.TxtPassword = New System.Windows.Forms.TextBox
        Me.GroupBox1.SuspendLayout()
        Me.GroupBox2.SuspendLayout()
        Me.SuspendLayout()
        '
        'GroupBox1
        '
        Me.GroupBox1.Controls.Add(Me.TxtEmail)
        Me.GroupBox1.Controls.Add(Me.Label7)
        Me.GroupBox1.Controls.Add(Me.TxtCellPhone)
        Me.GroupBox1.Controls.Add(Me.Label6)
        Me.GroupBox1.Controls.Add(Me.TxtPhone)
        Me.GroupBox1.Controls.Add(Me.Label5)
        Me.GroupBox1.Controls.Add(Me.TxtPassword)
        Me.GroupBox1.Controls.Add(Me.Label4)
        Me.GroupBox1.Controls.Add(Me.Label3)
        Me.GroupBox1.Controls.Add(Me.TxtUserName)
        Me.GroupBox1.Controls.Add(Me.Label2)
        Me.GroupBox1.Controls.Add(Me.TxtCurrentAddress)
        Me.GroupBox1.Location = New System.Drawing.Point(10, 52)
        Me.GroupBox1.Name = "GroupBox1"
        Me.GroupBox1.Size = New System.Drawing.Size(374, 244)
        Me.GroupBox1.TabIndex = 0
        Me.GroupBox1.TabStop = False
        Me.GroupBox1.Text = "用户信息"
        '
        'TxtEmail
        '
        Me.TxtEmail.Location = New System.Drawing.Point(154, 207)
        Me.TxtEmail.Name = "TxtEmail"
        Me.TxtEmail.Size = New System.Drawing.Size(201, 21)
        Me.TxtEmail.TabIndex = 11
        '
        'Label7
        '
        Me.Label7.Location = New System.Drawing.Point(31, 210)
        Me.Label7.Name = "Label7"
        Me.Label7.Size = New System.Drawing.Size(120, 24)
        Me.Label7.TabIndex = 10
        Me.Label7.Text = "Email"
        '
        'TxtCellPhone
        '
        Me.TxtCellPhone.Location = New System.Drawing.Point(154, 167)
        Me.TxtCellPhone.Name = "TxtCellPhone"
        Me.TxtCellPhone.Size = New System.Drawing.Size(201, 21)
        Me.TxtCellPhone.TabIndex = 9
        '
        'Label6
        '
        Me.Label6.Location = New System.Drawing.Point(31, 167)
        Me.Label6.Name = "Label6"
        Me.Label6.Size = New System.Drawing.Size(57, 25)
        Me.Label6.TabIndex = 8
        Me.Label6.Text = "手机号码"
        '
        'TxtPhone
        '
        Me.TxtPhone.Location = New System.Drawing.Point(154, 131)
        Me.TxtPhone.Name = "TxtPhone"
        Me.TxtPhone.Size = New System.Drawing.Size(201, 21)
        Me.TxtPhone.TabIndex = 7
        '
        'Label5
        '
        Me.Label5.Location = New System.Drawing.Point(30, 133)
        Me.Label5.Name = "Label5"
        Me.Label5.Size = New System.Drawing.Size(58, 25)
        Me.Label5.TabIndex = 6
        Me.Label5.Text = "电话号码"
        '
        'Label3
        '
        Me.Label3.Location = New System.Drawing.Point(31, 60)
        Me.Label3.Name = "Label3"
        Me.Label3.Size = New System.Drawing.Size(120, 25)
        Me.Label3.TabIndex = 2
        Me.Label3.Text = "目前地址"
        '
        'TxtUserName
        '
        Me.TxtUserName.Location = New System.Drawing.Point(154, 26)
        Me.TxtUserName.Name = "TxtUserName"
        Me.TxtUserName.Size = New System.Drawing.Size(201, 21)
        Me.TxtUserName.TabIndex = 1
        '
        'Label2
        '
        Me.Label2.Location = New System.Drawing.Point(31, 26)
        Me.Label2.Name = "Label2"
        Me.Label2.Size = New System.Drawing.Size(120, 25)
        Me.Label2.TabIndex = 0
        Me.Label2.Text = "用户姓名"
        '
        'TxtCurrentAddress
        '
        Me.TxtCurrentAddress.Location = New System.Drawing.Point(154, 60)
        Me.TxtCurrentAddress.Name = "TxtCurrentAddress"
        Me.TxtCurrentAddress.Size = New System.Drawing.Size(201, 21)
        Me.TxtCurrentAddress.TabIndex = 3
        '
        'Label1
        '
        Me.Label1.Location = New System.Drawing.Point(48, 17)
        Me.Label1.Name = "Label1"
        Me.Label1.Size = New System.Drawing.Size(120, 25)
        Me.Label1.TabIndex = 1
        Me.Label1.Text = "用户编号"
        '
        'TxtUserID
        '
        Me.TxtUserID.Location = New System.Drawing.Point(192, 17)
        Me.TxtUserID.Name = "TxtUserID"
        Me.TxtUserID.Size = New System.Drawing.Size(120, 21)
        Me.TxtUserID.TabIndex = 2
        '
        'GroupBox2
        '
        Me.GroupBox2.Controls.Add(Me.ComboGeneral)
        Me.GroupBox2.Controls.Add(Me.ComboLib)
        Me.GroupBox2.Controls.Add(Me.ComboAdmin)
        Me.GroupBox2.Controls.Add(Me.Label10)
        Me.GroupBox2.Controls.Add(Me.Label9)
        Me.GroupBox2.Controls.Add(Me.Label8)
        Me.GroupBox2.Location = New System.Drawing.Point(10, 313)
        Me.GroupBox2.Name = "GroupBox2"
        Me.GroupBox2.Size = New System.Drawing.Size(374, 138)
        Me.GroupBox2.TabIndex = 3
        Me.GroupBox2.TabStop = False
        Me.GroupBox2.Text = "用户权限信息"
        '
        'ComboGeneral
        '
        Me.ComboGeneral.Items.AddRange(New Object() {"Yes", "No"})
        Me.ComboGeneral.Location = New System.Drawing.Point(154, 95)
        Me.ComboGeneral.Name = "ComboGeneral"
        Me.ComboGeneral.Size = New System.Drawing.Size(201, 20)
        Me.ComboGeneral.TabIndex = 5
        '
        'ComboLib
        '
        Me.ComboLib.Items.AddRange(New Object() {"Yes", "No"})
        Me.ComboLib.Location = New System.Drawing.Point(154, 60)
        Me.ComboLib.Name = "ComboLib"
        Me.ComboLib.Size = New System.Drawing.Size(201, 20)
        Me.ComboLib.TabIndex = 4
        '
        'ComboAdmin
        '
        Me.ComboAdmin.Items.AddRange(New Object() {"Yes", "No"})
        Me.ComboAdmin.Location = New System.Drawing.Point(154, 26)
        Me.ComboAdmin.Name = "ComboAdmin"
        Me.ComboAdmin.Size = New System.Drawing.Size(201, 20)
        Me.ComboAdmin.TabIndex = 3
        '
        'Label10
        '
        Me.Label10.Location = New System.Drawing.Point(45, 95)
        Me.Label10.Name = "Label10"
        Me.Label10.Size = New System.Drawing.Size(120, 25)
        Me.Label10.TabIndex = 2
        Me.Label10.Text = "一般用户权限"
        '
        'Label9
        '
        Me.Label9.Location = New System.Drawing.Point(34, 60)
        Me.Label9.Name = "Label9"
        Me.Label9.Size = New System.Drawing.Size(120, 25)
        Me.Label9.TabIndex = 1
        Me.Label9.Text = "图书管理员权限"
        '
        'Label8
        '
        Me.Label8.Location = New System.Drawing.Point(34, 26)
        Me.Label8.Name = "Label8"
        Me.Label8.Size = New System.Drawing.Size(120, 25)
        Me.Label8.TabIndex = 0
        Me.Label8.Text = "超级管理员权限"
        '
        'BtnAdd
        '
        Me.BtnAdd.Location = New System.Drawing.Point(29, 464)
        Me.BtnAdd.Name = "BtnAdd"
        Me.BtnAdd.Size = New System.Drawing.Size(106, 34)
        Me.BtnAdd.TabIndex = 4
        Me.BtnAdd.Text = "更新"
        '
        'Button2
        '
        Me.Button2.Location = New System.Drawing.Point(135, 464)
        Me.Button2.Name = "Button2"
        Me.Button2.Size = New System.Drawing.Size(115, 34)
        Me.Button2.TabIndex = 5
        Me.Button2.Text = "重置"
        '
        'Button3
        '
        Me.Button3.Location = New System.Drawing.Point(250, 464)
        Me.Button3.Name = "Button3"
        Me.Button3.Size = New System.Drawing.Size(96, 34)
        Me.Button3.TabIndex = 6
        Me.Button3.Text = "退出"
        '
        'Label4
        '
        Me.Label4.Location = New System.Drawing.Point(52, 95)

⌨️ 快捷键说明

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