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

📄 frmoperator.vb

📁 一个用vb开发的档案管理程序
💻 VB
📖 第 1 页 / 共 3 页
字号:
Option Strict Off
Option Explicit On
Friend Class frmOperator
	Inherits System.Windows.Forms.Form
#Region "Windows 窗体设计器生成的代码"
	Public Sub New()
		MyBase.New()
		If m_vb6FormDefInstance Is Nothing Then
			If m_InitializingDefInstance Then
				m_vb6FormDefInstance = Me
			Else
				Try 
					'对于启动窗体,所创建的第一个实例为默认实例。
					If System.Reflection.Assembly.GetExecutingAssembly.EntryPoint.DeclaringType Is Me.GetType Then
						m_vb6FormDefInstance = Me
					End If
				Catch
				End Try
			End If
		End If
		'此调用是 Windows 窗体设计器所必需的。
		InitializeComponent()
		'此窗体是 MDI 子窗体。
		'此代码模拟 VB6 
		'的自动加载和显示
		' MDI 子级的父级
		'的功能。
		Me.MDIParent = 档案管理系统.frmMain.DefInstance.DefInstance
		档案管理系统.frmMain.DefInstance.DefInstance.Show
		'VB6 项目中的 MDI 窗体已将其
		'AutoShowChildren 属性设置为“真”
		'要模拟 VB6 行为,需要
		'在每次加载窗体时自动显示
		'该窗体。如果您不需要此行为,
		'请删除以下代码行
		'UPGRADE_NOTE: 移除下一行代码以阻止窗体自动显示。 单击以获得更多信息:'ms-help://MS.VSCC/commoner/redir/redirect.htm?keyword="vbup2018"'
		Me.Show
	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
	Public ToolTip1 As System.Windows.Forms.ToolTip
	Public WithEvents cmbAuthority As System.Windows.Forms.ComboBox
	Public WithEvents Grid1 As AxMSFlexGridLib.AxMSFlexGrid
	Public WithEvents Line8 As System.Windows.Forms.Label
	Public WithEvents Line7 As System.Windows.Forms.Label
	Public WithEvents Line6 As System.Windows.Forms.Label
	Public WithEvents Line5 As System.Windows.Forms.Label
	Public WithEvents Frame1 As System.Windows.Forms.GroupBox
	Public WithEvents Text1 As System.Windows.Forms.TextBox
	Public WithEvents Text2 As System.Windows.Forms.TextBox
	Public WithEvents Text3 As System.Windows.Forms.TextBox
	Public WithEvents Command1 As System.Windows.Forms.Button
	Public WithEvents Command2 As System.Windows.Forms.Button
	Public WithEvents Label6 As System.Windows.Forms.Label
	Public WithEvents Label5 As System.Windows.Forms.Label
	Public WithEvents Label7 As System.Windows.Forms.Label
	Public WithEvents Label8 As System.Windows.Forms.Label
	Public WithEvents Picture1 As System.Windows.Forms.Panel
	Public WithEvents _Label3_1 As System.Windows.Forms.Label
	Public WithEvents _Line3_2 As System.Windows.Forms.Label
	Public WithEvents _Line2_2 As System.Windows.Forms.Label
	Public WithEvents _Line3_0 As System.Windows.Forms.Label
	Public WithEvents _Line2_0 As System.Windows.Forms.Label
	Public WithEvents _Line1_4 As System.Windows.Forms.Label
	Public WithEvents _Line1_3 As System.Windows.Forms.Label
	Public WithEvents _Line1_2 As System.Windows.Forms.Label
	Public WithEvents _Line1_0 As System.Windows.Forms.Label
	Public WithEvents Label1 As System.Windows.Forms.Label
	Public WithEvents Label2 As System.Windows.Forms.Label
	Public WithEvents _Label3_0 As System.Windows.Forms.Label
	Public WithEvents _Line1_1 As System.Windows.Forms.Label
	Public WithEvents _Line2_1 As System.Windows.Forms.Label
	Public WithEvents _Line3_1 As System.Windows.Forms.Label
	Public WithEvents Line4 As System.Windows.Forms.Label
	Public WithEvents Label3 As Microsoft.VisualBasic.Compatibility.VB6.LabelArray
	Public WithEvents Line1 As Microsoft.VisualBasic.Compatibility.VB6.LabelArray
	Public WithEvents Line2 As Microsoft.VisualBasic.Compatibility.VB6.LabelArray
	Public WithEvents Line3 As Microsoft.VisualBasic.Compatibility.VB6.LabelArray
	Public WithEvents MnuAdd As System.Windows.Forms.MenuItem
	Public WithEvents Line02 As System.Windows.Forms.MenuItem
	Public WithEvents MnuDelete As System.Windows.Forms.MenuItem
	Public WithEvents Line01 As System.Windows.Forms.MenuItem
	Public WithEvents MnuOperate As System.Windows.Forms.MenuItem
	Public WithEvents MnuAuthority As System.Windows.Forms.MenuItem
	Public WithEvents MnuReturn As System.Windows.Forms.MenuItem
	Public MainMenu1 As System.Windows.Forms.MainMenu
	'注意:以下过程是 Windows 窗体设计器所必需的
	'可以使用 Windows 窗体设计器来修改它。
	'不要使用代码编辑器来修改它。
	<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
		Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmOperator))
		Me.components = New System.ComponentModel.Container()
		Me.ToolTip1 = New System.Windows.Forms.ToolTip(components)
		Me.ToolTip1.Active = True
		Me.cmbAuthority = New System.Windows.Forms.ComboBox
		Me.Frame1 = New System.Windows.Forms.GroupBox
		Me.Grid1 = New AxMSFlexGridLib.AxMSFlexGrid
		Me.Line8 = New System.Windows.Forms.Label
		Me.Line7 = New System.Windows.Forms.Label
		Me.Line6 = New System.Windows.Forms.Label
		Me.Line5 = New System.Windows.Forms.Label
		Me.Text1 = New System.Windows.Forms.TextBox
		Me.Text2 = New System.Windows.Forms.TextBox
		Me.Text3 = New System.Windows.Forms.TextBox
		Me.Command1 = New System.Windows.Forms.Button
		Me.Command2 = New System.Windows.Forms.Button
		Me.Picture1 = New System.Windows.Forms.Panel
		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._Label3_1 = New System.Windows.Forms.Label
		Me._Line3_2 = New System.Windows.Forms.Label
		Me._Line2_2 = New System.Windows.Forms.Label
		Me._Line3_0 = New System.Windows.Forms.Label
		Me._Line2_0 = New System.Windows.Forms.Label
		Me._Line1_4 = New System.Windows.Forms.Label
		Me._Line1_3 = New System.Windows.Forms.Label
		Me._Line1_2 = New System.Windows.Forms.Label
		Me._Line1_0 = New System.Windows.Forms.Label
		Me.Label1 = New System.Windows.Forms.Label
		Me.Label2 = New System.Windows.Forms.Label
		Me._Label3_0 = New System.Windows.Forms.Label
		Me._Line1_1 = New System.Windows.Forms.Label
		Me._Line2_1 = New System.Windows.Forms.Label
		Me._Line3_1 = New System.Windows.Forms.Label
		Me.Line4 = New System.Windows.Forms.Label
		Me.Label3 = New Microsoft.VisualBasic.Compatibility.VB6.LabelArray(components)
		Me.Line1 = New Microsoft.VisualBasic.Compatibility.VB6.LabelArray(components)
		Me.Line2 = New Microsoft.VisualBasic.Compatibility.VB6.LabelArray(components)
		Me.Line3 = New Microsoft.VisualBasic.Compatibility.VB6.LabelArray(components)
		Me.MainMenu1 = New System.Windows.Forms.MainMenu
		Me.MnuOperate = New System.Windows.Forms.MenuItem
		Me.MnuAdd = New System.Windows.Forms.MenuItem
		Me.Line02 = New System.Windows.Forms.MenuItem
		Me.MnuDelete = New System.Windows.Forms.MenuItem
		Me.Line01 = New System.Windows.Forms.MenuItem
		Me.MnuReturn = New System.Windows.Forms.MenuItem
		Me.MnuAuthority = New System.Windows.Forms.MenuItem
		CType(Me.Grid1, System.ComponentModel.ISupportInitialize).BeginInit()
		CType(Me.Label3, System.ComponentModel.ISupportInitialize).BeginInit()
		CType(Me.Line1, System.ComponentModel.ISupportInitialize).BeginInit()
		CType(Me.Line2, System.ComponentModel.ISupportInitialize).BeginInit()
		CType(Me.Line3, System.ComponentModel.ISupportInitialize).BeginInit()
		Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog
		Me.Text = "操作用户管理< 系统管理员 >"
		Me.ClientSize = New System.Drawing.Size(408, 240)
		Me.Location = New System.Drawing.Point(3, 41)
		Me.Icon = CType(resources.GetObject("frmOperator.Icon"), System.Drawing.Icon)
		Me.MaximizeBox = False
		Me.StartPosition = System.Windows.Forms.FormStartPosition.WindowsDefaultBounds
		Me.MinimizeBox = False
		Me.ShowInTaskbar = False
		Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
		Me.BackColor = System.Drawing.SystemColors.Control
		Me.ControlBox = True
		Me.Enabled = True
		Me.KeyPreview = False
		Me.Cursor = System.Windows.Forms.Cursors.Default
		Me.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.HelpButton = False
		Me.WindowState = System.Windows.Forms.FormWindowState.Normal
		Me.Name = "frmOperator"
		Me.cmbAuthority.Size = New System.Drawing.Size(102, 20)
		Me.cmbAuthority.Location = New System.Drawing.Point(291, 157)
		Me.cmbAuthority.Items.AddRange(New Object(){"只能添加", "不能修改", "可以修改", "超级权限"})
		Me.cmbAuthority.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
		Me.cmbAuthority.TabIndex = 3
		Me.cmbAuthority.BackColor = System.Drawing.SystemColors.Window
		Me.cmbAuthority.CausesValidation = True
		Me.cmbAuthority.Enabled = True
		Me.cmbAuthority.ForeColor = System.Drawing.SystemColors.WindowText
		Me.cmbAuthority.IntegralHeight = True
		Me.cmbAuthority.Cursor = System.Windows.Forms.Cursors.Default
		Me.cmbAuthority.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.cmbAuthority.Sorted = False
		Me.cmbAuthority.TabStop = True
		Me.cmbAuthority.Visible = True
		Me.cmbAuthority.Name = "cmbAuthority"
		Me.Frame1.Text = "操作员列表"
		Me.Frame1.ForeColor = System.Drawing.Color.FromARGB(0, 0, 128)
		Me.Frame1.Size = New System.Drawing.Size(225, 144)
		Me.Frame1.Location = New System.Drawing.Point(14, 79)
		Me.Frame1.TabIndex = 12
		Me.Frame1.BackColor = System.Drawing.SystemColors.Control
		Me.Frame1.Enabled = True
		Me.Frame1.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.Frame1.Visible = True
		Me.Frame1.Name = "Frame1"
		Grid1.OcxState = CType(resources.GetObject("Grid1.OcxState"), System.Windows.Forms.AxHost.State)
		Me.Grid1.Size = New System.Drawing.Size(209, 113)
		Me.Grid1.Location = New System.Drawing.Point(8, 21)
		Me.Grid1.TabIndex = 6
		Me.Grid1.Name = "Grid1"
		Me.Line8.BackColor = System.Drawing.Color.White
		Me.Line8.Visible = True
		Me.Line8.Location = New System.Drawing.Point(7, 134)
		Me.Line8.Width = 211
		Me.Line8.Height = 1
		Me.Line8.Name = "Line8"
		Me.Line7.BackColor = System.Drawing.Color.White
		Me.Line7.Visible = True
		Me.Line7.Location = New System.Drawing.Point(217, 21)
		Me.Line7.Width = 1
		Me.Line7.Height = 114
		Me.Line7.Name = "Line7"
		Me.Line6.BackColor = System.Drawing.Color.FromARGB(128, 128, 128)
		Me.Line6.Visible = True
		Me.Line6.Location = New System.Drawing.Point(7, 20)
		Me.Line6.Width = 211
		Me.Line6.Height = 1
		Me.Line6.Name = "Line6"
		Me.Line5.BackColor = System.Drawing.Color.FromARGB(128, 128, 128)
		Me.Line5.Visible = True
		Me.Line5.Location = New System.Drawing.Point(7, 21)
		Me.Line5.Width = 1
		Me.Line5.Height = 113
		Me.Line5.Name = "Line5"
		Me.Text1.AutoSize = False
		Me.Text1.Size = New System.Drawing.Size(102, 20)
		Me.Text1.Location = New System.Drawing.Point(291, 87)
		Me.Text1.Maxlength = 5
		Me.Text1.TabIndex = 0
		Me.Text1.AcceptsReturn = True
		Me.Text1.TextAlign = System.Windows.Forms.HorizontalAlignment.Left
		Me.Text1.BackColor = System.Drawing.SystemColors.Window
		Me.Text1.CausesValidation = True
		Me.Text1.Enabled = True
		Me.Text1.ForeColor = System.Drawing.SystemColors.WindowText
		Me.Text1.HideSelection = True
		Me.Text1.ReadOnly = False
		Me.Text1.Cursor = System.Windows.Forms.Cursors.IBeam
		Me.Text1.MultiLine = False
		Me.Text1.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.Text1.ScrollBars = System.Windows.Forms.ScrollBars.None
		Me.Text1.TabStop = True
		Me.Text1.Visible = True
		Me.Text1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
		Me.Text1.Name = "Text1"
		Me.Text2.AutoSize = False
		Me.Text2.Size = New System.Drawing.Size(102, 20)
		Me.Text2.IMEMode = System.Windows.Forms.ImeMode.Disable
		Me.Text2.Location = New System.Drawing.Point(291, 110)
		Me.Text2.Maxlength = 20
		Me.Text2.PasswordChar = ChrW(42)
		Me.Text2.TabIndex = 1
		Me.Text2.AcceptsReturn = True
		Me.Text2.TextAlign = System.Windows.Forms.HorizontalAlignment.Left
		Me.Text2.BackColor = System.Drawing.SystemColors.Window
		Me.Text2.CausesValidation = True
		Me.Text2.Enabled = True
		Me.Text2.ForeColor = System.Drawing.SystemColors.WindowText
		Me.Text2.HideSelection = True
		Me.Text2.ReadOnly = False
		Me.Text2.Cursor = System.Windows.Forms.Cursors.IBeam
		Me.Text2.MultiLine = False
		Me.Text2.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.Text2.ScrollBars = System.Windows.Forms.ScrollBars.None
		Me.Text2.TabStop = True
		Me.Text2.Visible = True
		Me.Text2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
		Me.Text2.Name = "Text2"
		Me.Text3.AutoSize = False
		Me.Text3.Size = New System.Drawing.Size(102, 20)
		Me.Text3.IMEMode = System.Windows.Forms.ImeMode.Disable
		Me.Text3.Location = New System.Drawing.Point(291, 133)
		Me.Text3.Maxlength = 20
		Me.Text3.PasswordChar = ChrW(42)
		Me.Text3.TabIndex = 2
		Me.Text3.AcceptsReturn = True
		Me.Text3.TextAlign = System.Windows.Forms.HorizontalAlignment.Left
		Me.Text3.BackColor = System.Drawing.SystemColors.Window
		Me.Text3.CausesValidation = True
		Me.Text3.Enabled = True
		Me.Text3.ForeColor = System.Drawing.SystemColors.WindowText
		Me.Text3.HideSelection = True
		Me.Text3.ReadOnly = False
		Me.Text3.Cursor = System.Windows.Forms.Cursors.IBeam
		Me.Text3.MultiLine = False
		Me.Text3.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.Text3.ScrollBars = System.Windows.Forms.ScrollBars.None
		Me.Text3.TabStop = True
		Me.Text3.Visible = True
		Me.Text3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
		Me.Text3.Name = "Text3"
		Me.Command1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
		Me.Command1.Text = "保存(S)"
		Me.Command1.Enabled = False
		Me.Command1.Size = New System.Drawing.Size(74, 25)
		Me.Command1.Location = New System.Drawing.Point(244, 198)
		Me.Command1.TabIndex = 4
		Me.Command1.BackColor = System.Drawing.SystemColors.Control
		Me.Command1.CausesValidation = True
		Me.Command1.ForeColor = System.Drawing.SystemColors.ControlText
		Me.Command1.Cursor = System.Windows.Forms.Cursors.Default
		Me.Command1.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.Command1.TabStop = True
		Me.Command1.Name = "Command1"
		Me.Command2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
		Me.CancelButton = Me.Command2
		Me.Command2.Text = "关闭(&C)"
		Me.Command2.Size = New System.Drawing.Size(74, 25)
		Me.Command2.Location = New System.Drawing.Point(322, 198)
		Me.Command2.TabIndex = 5
		Me.Command2.BackColor = System.Drawing.SystemColors.Control
		Me.Command2.CausesValidation = True
		Me.Command2.Enabled = True
		Me.Command2.ForeColor = System.Drawing.SystemColors.ControlText
		Me.Command2.Cursor = System.Windows.Forms.Cursors.Default
		Me.Command2.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.Command2.TabStop = True
		Me.Command2.Name = "Command2"
		Me.Picture1.BackColor = System.Drawing.Color.FromARGB(0, 192, 0)
		Me.Picture1.Size = New System.Drawing.Size(385, 50)
		Me.Picture1.Location = New System.Drawing.Point(11, 12)
		Me.Picture1.TabIndex = 7
		Me.ToolTip1.SetToolTip(Me.Picture1, "操作提示")
		Me.Picture1.Dock = System.Windows.Forms.DockStyle.None
		Me.Picture1.CausesValidation = True
		Me.Picture1.Enabled = True
		Me.Picture1.ForeColor = System.Drawing.SystemColors.ControlText
		Me.Picture1.Cursor = System.Windows.Forms.Cursors.Default
		Me.Picture1.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.Picture1.TabStop = True

⌨️ 快捷键说明

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