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

📄 frmuserman.vb

📁 这个是本人写的题库系统,开发工具是vb.net.试题编辑,试卷编辑,可以在word中编辑试题.由于时间关系,很多功能需要细化.
💻 VB
📖 第 1 页 / 共 2 页
字号:
Public Class frmUserman
    Inherits System.Windows.Forms.Form
    Dim IsUpdated As Integer = 0
#Region " Windows 窗体设计器生成的代码 "

    Public Sub New()
        MyBase.New()

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

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

    End Sub

    '窗体重写 dispose 以清理组件列表。
    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 GroupBox1 As System.Windows.Forms.GroupBox
    Friend WithEvents dg_userman As System.Windows.Forms.DataGrid
    Friend WithEvents txt_name As System.Windows.Forms.TextBox
    Friend WithEvents Label1 As System.Windows.Forms.Label
    Friend WithEvents Label2 As System.Windows.Forms.Label
    Friend WithEvents txt_pwd As System.Windows.Forms.TextBox
    Friend WithEvents Label3 As System.Windows.Forms.Label
    Friend WithEvents txt_chkpwd As System.Windows.Forms.TextBox
    Friend WithEvents Label4 As System.Windows.Forms.Label
    Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox
    Friend WithEvents cmd_add As System.Windows.Forms.Button
    Friend WithEvents cmd_Del As System.Windows.Forms.Button
    Friend WithEvents cmd_modify As System.Windows.Forms.Button
    Friend WithEvents cmd_save As System.Windows.Forms.Button
    Friend WithEvents cmd_refresh As System.Windows.Forms.Button
    Friend WithEvents cmd_cancel As System.Windows.Forms.Button
    Friend WithEvents comb_usertype As System.Windows.Forms.ComboBox
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmUserman))
        Me.GroupBox1 = New System.Windows.Forms.GroupBox
        Me.GroupBox2 = New System.Windows.Forms.GroupBox
        Me.cmd_cancel = New System.Windows.Forms.Button
        Me.cmd_refresh = New System.Windows.Forms.Button
        Me.cmd_save = New System.Windows.Forms.Button
        Me.cmd_modify = New System.Windows.Forms.Button
        Me.cmd_Del = New System.Windows.Forms.Button
        Me.cmd_add = New System.Windows.Forms.Button
        Me.Label4 = New System.Windows.Forms.Label
        Me.comb_usertype = New System.Windows.Forms.ComboBox
        Me.Label3 = New System.Windows.Forms.Label
        Me.txt_chkpwd = New System.Windows.Forms.TextBox
        Me.Label2 = New System.Windows.Forms.Label
        Me.txt_pwd = New System.Windows.Forms.TextBox
        Me.Label1 = New System.Windows.Forms.Label
        Me.txt_name = New System.Windows.Forms.TextBox
        Me.dg_userman = New System.Windows.Forms.DataGrid
        Me.GroupBox1.SuspendLayout()
        Me.GroupBox2.SuspendLayout()
        CType(Me.dg_userman, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'GroupBox1
        '
        Me.GroupBox1.Controls.Add(Me.GroupBox2)
        Me.GroupBox1.Controls.Add(Me.Label4)
        Me.GroupBox1.Controls.Add(Me.comb_usertype)
        Me.GroupBox1.Controls.Add(Me.Label3)
        Me.GroupBox1.Controls.Add(Me.txt_chkpwd)
        Me.GroupBox1.Controls.Add(Me.Label2)
        Me.GroupBox1.Controls.Add(Me.txt_pwd)
        Me.GroupBox1.Controls.Add(Me.Label1)
        Me.GroupBox1.Controls.Add(Me.txt_name)
        Me.GroupBox1.Location = New System.Drawing.Point(8, 8)
        Me.GroupBox1.Name = "GroupBox1"
        Me.GroupBox1.Size = New System.Drawing.Size(480, 160)
        Me.GroupBox1.TabIndex = 0
        Me.GroupBox1.TabStop = False
        Me.GroupBox1.Text = "信 息"
        '
        'GroupBox2
        '
        Me.GroupBox2.Controls.Add(Me.cmd_cancel)
        Me.GroupBox2.Controls.Add(Me.cmd_refresh)
        Me.GroupBox2.Controls.Add(Me.cmd_save)
        Me.GroupBox2.Controls.Add(Me.cmd_modify)
        Me.GroupBox2.Controls.Add(Me.cmd_Del)
        Me.GroupBox2.Controls.Add(Me.cmd_add)
        Me.GroupBox2.Location = New System.Drawing.Point(240, 8)
        Me.GroupBox2.Name = "GroupBox2"
        Me.GroupBox2.Size = New System.Drawing.Size(232, 144)
        Me.GroupBox2.TabIndex = 9
        Me.GroupBox2.TabStop = False
        '
        'cmd_cancel
        '
        Me.cmd_cancel.Location = New System.Drawing.Point(140, 102)
        Me.cmd_cancel.Name = "cmd_cancel"
        Me.cmd_cancel.Size = New System.Drawing.Size(72, 24)
        Me.cmd_cancel.TabIndex = 6
        Me.cmd_cancel.Text = "返   回"
        '
        'cmd_refresh
        '
        Me.cmd_refresh.Location = New System.Drawing.Point(140, 63)
        Me.cmd_refresh.Name = "cmd_refresh"
        Me.cmd_refresh.Size = New System.Drawing.Size(72, 24)
        Me.cmd_refresh.TabIndex = 5
        Me.cmd_refresh.Text = "刷   新"
        '
        'cmd_save
        '
        Me.cmd_save.Location = New System.Drawing.Point(140, 24)
        Me.cmd_save.Name = "cmd_save"
        Me.cmd_save.Size = New System.Drawing.Size(72, 24)
        Me.cmd_save.TabIndex = 4
        Me.cmd_save.Text = "保   存"
        '
        'cmd_modify
        '
        Me.cmd_modify.Location = New System.Drawing.Point(20, 102)
        Me.cmd_modify.Name = "cmd_modify"
        Me.cmd_modify.Size = New System.Drawing.Size(72, 24)
        Me.cmd_modify.TabIndex = 3
        Me.cmd_modify.Text = "修   改"
        '
        'cmd_Del
        '
        Me.cmd_Del.Location = New System.Drawing.Point(20, 63)
        Me.cmd_Del.Name = "cmd_Del"
        Me.cmd_Del.Size = New System.Drawing.Size(72, 24)
        Me.cmd_Del.TabIndex = 2
        Me.cmd_Del.Text = "删   除"
        '
        'cmd_add
        '
        Me.cmd_add.Location = New System.Drawing.Point(20, 24)
        Me.cmd_add.Name = "cmd_add"
        Me.cmd_add.Size = New System.Drawing.Size(72, 24)
        Me.cmd_add.TabIndex = 1
        Me.cmd_add.Text = "添   加"
        '
        'Label4
        '
        Me.Label4.Location = New System.Drawing.Point(24, 135)
        Me.Label4.Name = "Label4"
        Me.Label4.Size = New System.Drawing.Size(72, 16)
        Me.Label4.TabIndex = 8
        Me.Label4.Text = "用户类型:"
        '
        'comb_usertype
        '
        Me.comb_usertype.CausesValidation = False
        Me.comb_usertype.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.comb_usertype.Enabled = False
        Me.comb_usertype.Items.AddRange(New Object() {"操作员", "系统管理员"})
        Me.comb_usertype.Location = New System.Drawing.Point(96, 131)
        Me.comb_usertype.Name = "comb_usertype"
        Me.comb_usertype.Size = New System.Drawing.Size(128, 20)
        Me.comb_usertype.TabIndex = 7
        '
        'Label3
        '
        Me.Label3.Location = New System.Drawing.Point(24, 100)
        Me.Label3.Name = "Label3"
        Me.Label3.Size = New System.Drawing.Size(72, 16)
        Me.Label3.TabIndex = 6
        Me.Label3.Text = "确认密码:"
        '
        'txt_chkpwd
        '
        Me.txt_chkpwd.Enabled = False
        Me.txt_chkpwd.Location = New System.Drawing.Point(97, 98)
        Me.txt_chkpwd.MaxLength = 20
        Me.txt_chkpwd.Name = "txt_chkpwd"
        Me.txt_chkpwd.PasswordChar = Microsoft.VisualBasic.ChrW(42)
        Me.txt_chkpwd.Size = New System.Drawing.Size(126, 21)
        Me.txt_chkpwd.TabIndex = 5
        Me.txt_chkpwd.Text = ""
        '
        'Label2
        '
        Me.Label2.Location = New System.Drawing.Point(24, 64)
        Me.Label2.Name = "Label2"
        Me.Label2.Size = New System.Drawing.Size(72, 16)
        Me.Label2.TabIndex = 4
        Me.Label2.Text = "密    码:"
        '
        'txt_pwd
        '
        Me.txt_pwd.Enabled = False
        Me.txt_pwd.Location = New System.Drawing.Point(97, 61)
        Me.txt_pwd.MaxLength = 20
        Me.txt_pwd.Name = "txt_pwd"
        Me.txt_pwd.PasswordChar = Microsoft.VisualBasic.ChrW(42)
        Me.txt_pwd.Size = New System.Drawing.Size(126, 21)
        Me.txt_pwd.TabIndex = 3
        Me.txt_pwd.Text = ""
        '
        'Label1
        '
        Me.Label1.Location = New System.Drawing.Point(24, 28)
        Me.Label1.Name = "Label1"
        Me.Label1.Size = New System.Drawing.Size(72, 17)
        Me.Label1.TabIndex = 2
        Me.Label1.Text = "用户名称:"
        '
        'txt_name
        '
        Me.txt_name.Enabled = False
        Me.txt_name.Location = New System.Drawing.Point(97, 24)
        Me.txt_name.MaxLength = 20
        Me.txt_name.Name = "txt_name"
        Me.txt_name.Size = New System.Drawing.Size(126, 21)
        Me.txt_name.TabIndex = 1
        Me.txt_name.Text = ""
        '
        'dg_userman
        '
        Me.dg_userman.AlternatingBackColor = System.Drawing.Color.GhostWhite
        Me.dg_userman.BackColor = System.Drawing.Color.GhostWhite
        Me.dg_userman.BackgroundColor = System.Drawing.Color.Lavender
        Me.dg_userman.BorderStyle = System.Windows.Forms.BorderStyle.None
        Me.dg_userman.CaptionBackColor = System.Drawing.Color.RoyalBlue
        Me.dg_userman.CaptionForeColor = System.Drawing.Color.White
        Me.dg_userman.CaptionText = "用户信息"
        Me.dg_userman.DataMember = ""
        Me.dg_userman.FlatMode = True
        Me.dg_userman.Font = New System.Drawing.Font("Tahoma", 8.0!)
        Me.dg_userman.ForeColor = System.Drawing.Color.MidnightBlue
        Me.dg_userman.GridLineColor = System.Drawing.Color.RoyalBlue
        Me.dg_userman.HeaderBackColor = System.Drawing.Color.MidnightBlue
        Me.dg_userman.HeaderFont = New System.Drawing.Font("Tahoma", 8.0!, System.Drawing.FontStyle.Bold)
        Me.dg_userman.HeaderForeColor = System.Drawing.Color.Lavender
        Me.dg_userman.LinkColor = System.Drawing.Color.Teal
        Me.dg_userman.Location = New System.Drawing.Point(8, 176)
        Me.dg_userman.Name = "dg_userman"
        Me.dg_userman.ParentRowsBackColor = System.Drawing.Color.Lavender
        Me.dg_userman.ParentRowsForeColor = System.Drawing.Color.MidnightBlue
        Me.dg_userman.ReadOnly = True
        Me.dg_userman.SelectionBackColor = System.Drawing.Color.Teal
        Me.dg_userman.SelectionForeColor = System.Drawing.Color.PaleGreen
        Me.dg_userman.Size = New System.Drawing.Size(480, 240)
        Me.dg_userman.TabIndex = 1
        '
        'frmUserman
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(6, 14)
        Me.ClientSize = New System.Drawing.Size(498, 423)
        Me.Controls.Add(Me.dg_userman)
        Me.Controls.Add(Me.GroupBox1)
        Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
        Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
        Me.MaximizeBox = False
        Me.Name = "frmUserman"
        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
        Me.Text = "用户管理"
        Me.GroupBox1.ResumeLayout(False)
        Me.GroupBox2.ResumeLayout(False)
        CType(Me.dg_userman, System.ComponentModel.ISupportInitialize).EndInit()
        Me.ResumeLayout(False)

    End Sub

#End Region

    Private Sub IsUpdate(ByVal updateflag As Integer)

⌨️ 快捷键说明

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