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

📄 frm_adduser.vb

📁 一个用VB.NET做的图书管理系统,功能比较简单
💻 VB
📖 第 1 页 / 共 2 页
字号:
Imports System.Data.OleDb
Public Class frm_AddUser
    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
    Dim MyReader As OleDbDataReader
#Region " Windows 窗体设计器生成的代码 "

    Public Sub New()
        MyBase.New()

        '该调用是 Windows 窗体设计器所必需的。
        InitializeComponent()

        '在 InitializeComponent() 调用之后添加任何初始化

    End Sub

    '窗体重写处置以清理组件列表。
    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

    'Windows 窗体设计器所必需的
    Private components As System.ComponentModel.IContainer

    '注意:以下过程是 Windows 窗体设计器所必需的
    '可以使用 Windows 窗体设计器修改此过程。
    '不要使用代码编辑器修改它。
    Friend WithEvents TxtPassword As System.Windows.Forms.TextBox
    Friend WithEvents TxtUserID As System.Windows.Forms.TextBox
    Friend WithEvents Label2 As System.Windows.Forms.Label
    Friend WithEvents Label1 As System.Windows.Forms.Label
    Friend WithEvents BtCancel As System.Windows.Forms.Button
    Friend WithEvents Label3 As System.Windows.Forms.Label
    Friend WithEvents TxtName As System.Windows.Forms.TextBox
    Friend WithEvents Label4 As System.Windows.Forms.Label
    Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
    Friend WithEvents Label6 As System.Windows.Forms.Label
    Friend WithEvents Label5 As System.Windows.Forms.Label
    Friend WithEvents ComboLib As System.Windows.Forms.ComboBox
    Friend WithEvents ComboAdmin As System.Windows.Forms.ComboBox
    Friend WithEvents ComboGeneral As System.Windows.Forms.ComboBox
    Friend WithEvents Label11 As System.Windows.Forms.Label
    Friend WithEvents Label7 As System.Windows.Forms.Label
    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 TxtAddress As System.Windows.Forms.TextBox
    Friend WithEvents TxtPhone As System.Windows.Forms.TextBox
    Friend WithEvents TxtCellPhone As System.Windows.Forms.TextBox
    Friend WithEvents TxtEmail As System.Windows.Forms.TextBox
    Friend WithEvents ComboStatus As System.Windows.Forms.ComboBox
    Friend WithEvents BtOK As System.Windows.Forms.Button
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.TxtPassword = New System.Windows.Forms.TextBox
        Me.TxtUserID = New System.Windows.Forms.TextBox
        Me.Label2 = New System.Windows.Forms.Label
        Me.Label1 = New System.Windows.Forms.Label
        Me.BtCancel = New System.Windows.Forms.Button
        Me.BtOK = New System.Windows.Forms.Button
        Me.Label3 = New System.Windows.Forms.Label
        Me.TxtName = New System.Windows.Forms.TextBox
        Me.Label4 = New System.Windows.Forms.Label
        Me.GroupBox1 = New System.Windows.Forms.GroupBox
        Me.ComboGeneral = New System.Windows.Forms.ComboBox
        Me.Label11 = New System.Windows.Forms.Label
        Me.ComboLib = New System.Windows.Forms.ComboBox
        Me.ComboAdmin = New System.Windows.Forms.ComboBox
        Me.Label6 = New System.Windows.Forms.Label
        Me.Label5 = New System.Windows.Forms.Label
        Me.Label7 = New System.Windows.Forms.Label
        Me.Label8 = New System.Windows.Forms.Label
        Me.Label9 = New System.Windows.Forms.Label
        Me.Label10 = New System.Windows.Forms.Label
        Me.TxtAddress = New System.Windows.Forms.TextBox
        Me.TxtPhone = New System.Windows.Forms.TextBox
        Me.TxtCellPhone = New System.Windows.Forms.TextBox
        Me.TxtEmail = New System.Windows.Forms.TextBox
        Me.ComboStatus = New System.Windows.Forms.ComboBox
        Me.GroupBox1.SuspendLayout()
        Me.SuspendLayout()
        '
        'TxtPassword
        '
        Me.TxtPassword.Location = New System.Drawing.Point(77, 53)
        Me.TxtPassword.MaxLength = 10
        Me.TxtPassword.Name = "TxtPassword"
        Me.TxtPassword.Size = New System.Drawing.Size(120, 21)
        Me.TxtPassword.TabIndex = 11
        '
        'TxtUserID
        '
        Me.TxtUserID.Location = New System.Drawing.Point(77, 15)
        Me.TxtUserID.MaxLength = 10
        Me.TxtUserID.Name = "TxtUserID"
        Me.TxtUserID.Size = New System.Drawing.Size(120, 21)
        Me.TxtUserID.TabIndex = 10
        '
        'Label2
        '
        Me.Label2.Location = New System.Drawing.Point(23, 57)
        Me.Label2.Name = "Label2"
        Me.Label2.Size = New System.Drawing.Size(48, 24)
        Me.Label2.TabIndex = 9
        Me.Label2.Text = "密码"
        '
        'Label1
        '
        Me.Label1.Location = New System.Drawing.Point(15, 18)
        Me.Label1.Name = "Label1"
        Me.Label1.Size = New System.Drawing.Size(56, 24)
        Me.Label1.TabIndex = 8
        Me.Label1.Text = "用户编号"
        '
        'BtCancel
        '
        Me.BtCancel.Location = New System.Drawing.Point(231, 327)
        Me.BtCancel.Name = "BtCancel"
        Me.BtCancel.Size = New System.Drawing.Size(95, 24)
        Me.BtCancel.TabIndex = 7
        Me.BtCancel.Text = "关闭"
        '
        'BtOK
        '
        Me.BtOK.Location = New System.Drawing.Point(78, 327)
        Me.BtOK.Name = "BtOK"
        Me.BtOK.Size = New System.Drawing.Size(92, 24)
        Me.BtOK.TabIndex = 6
        Me.BtOK.Text = "确定"
        '
        'Label3
        '
        Me.Label3.AutoSize = True
        Me.Label3.Location = New System.Drawing.Point(216, 21)
        Me.Label3.Name = "Label3"
        Me.Label3.Size = New System.Drawing.Size(53, 12)
        Me.Label3.TabIndex = 12
        Me.Label3.Text = "用户姓名"
        '
        'TxtName
        '
        Me.TxtName.Location = New System.Drawing.Point(287, 15)
        Me.TxtName.Name = "TxtName"
        Me.TxtName.Size = New System.Drawing.Size(120, 21)
        Me.TxtName.TabIndex = 13
        '
        'Label4
        '
        Me.Label4.Location = New System.Drawing.Point(233, 62)
        Me.Label4.Name = "Label4"
        Me.Label4.Size = New System.Drawing.Size(48, 24)
        Me.Label4.TabIndex = 14
        Me.Label4.Text = "状态"
        '
        'GroupBox1
        '
        Me.GroupBox1.Controls.Add(Me.ComboGeneral)
        Me.GroupBox1.Controls.Add(Me.Label11)
        Me.GroupBox1.Controls.Add(Me.ComboLib)
        Me.GroupBox1.Controls.Add(Me.ComboAdmin)
        Me.GroupBox1.Controls.Add(Me.Label6)
        Me.GroupBox1.Controls.Add(Me.Label5)
        Me.GroupBox1.Location = New System.Drawing.Point(11, 169)
        Me.GroupBox1.Name = "GroupBox1"
        Me.GroupBox1.Size = New System.Drawing.Size(398, 146)
        Me.GroupBox1.TabIndex = 16
        Me.GroupBox1.TabStop = False
        Me.GroupBox1.Text = "权限设置"
        '
        'ComboGeneral
        '
        Me.ComboGeneral.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.ComboGeneral.FormattingEnabled = True
        Me.ComboGeneral.Items.AddRange(New Object() {"是", "否"})
        Me.ComboGeneral.Location = New System.Drawing.Point(122, 103)
        Me.ComboGeneral.Name = "ComboGeneral"
        Me.ComboGeneral.Size = New System.Drawing.Size(252, 20)
        Me.ComboGeneral.TabIndex = 5
        '
        'Label11
        '
        Me.Label11.AutoSize = True
        Me.Label11.Location = New System.Drawing.Point(15, 106)
        Me.Label11.Name = "Label11"
        Me.Label11.Size = New System.Drawing.Size(89, 12)
        Me.Label11.TabIndex = 4
        Me.Label11.Text = "一般管理员权限"
        '
        'ComboLib
        '
        Me.ComboLib.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.ComboLib.FormattingEnabled = True
        Me.ComboLib.Items.AddRange(New Object() {"是", "否"})
        Me.ComboLib.Location = New System.Drawing.Point(122, 65)
        Me.ComboLib.Name = "ComboLib"
        Me.ComboLib.Size = New System.Drawing.Size(252, 20)
        Me.ComboLib.TabIndex = 3
        '
        'ComboAdmin

⌨️ 快捷键说明

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