?? frm_adduser.vb
字號:
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 + -