📄 login.vb
字号:
Imports System.Data
Imports System.Data.SqlClient
Public Class login
Inherits System.Windows.Forms.Form
#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 Label1 As System.Windows.Forms.Label
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents Label3 As System.Windows.Forms.Label
Friend WithEvents Label4 As System.Windows.Forms.Label
Friend WithEvents AxNiceCheck1 As AxNiceFormControl.AxNiceCheck
Friend WithEvents Label5 As System.Windows.Forms.Label
Friend WithEvents AxNiceButton1 As AxNiceFormControl.AxNiceButton
Friend WithEvents AxNiceButton2 As AxNiceFormControl.AxNiceButton
Friend WithEvents txtServer As System.Windows.Forms.TextBox
Friend WithEvents cmdName As System.Windows.Forms.ComboBox
Friend WithEvents txtPwd As System.Windows.Forms.TextBox
Friend WithEvents ToolTip1 As System.Windows.Forms.ToolTip
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(login))
Me.Label1 = New System.Windows.Forms.Label
Me.Label2 = New System.Windows.Forms.Label
Me.Label3 = New System.Windows.Forms.Label
Me.cmdName = New System.Windows.Forms.ComboBox
Me.txtPwd = New System.Windows.Forms.TextBox
Me.txtServer = New System.Windows.Forms.TextBox
Me.Label4 = New System.Windows.Forms.Label
Me.AxNiceCheck1 = New AxNiceFormControl.AxNiceCheck
Me.Label5 = New System.Windows.Forms.Label
Me.AxNiceButton1 = New AxNiceFormControl.AxNiceButton
Me.AxNiceButton2 = New AxNiceFormControl.AxNiceButton
Me.ToolTip1 = New System.Windows.Forms.ToolTip(Me.components)
CType(Me.AxNiceCheck1, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.AxNiceButton1, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.AxNiceButton2, System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
'
'Label1
'
Me.Label1.Location = New System.Drawing.Point(-24, 16)
Me.Label1.Name = "Label1"
Me.Label1.TabIndex = 0
Me.Label1.Text = "用户名:"
Me.Label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight
'
'Label2
'
Me.Label2.Location = New System.Drawing.Point(-24, 48)
Me.Label2.Name = "Label2"
Me.Label2.TabIndex = 1
Me.Label2.Text = "密 码:"
Me.Label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight
'
'Label3
'
Me.Label3.Location = New System.Drawing.Point(-24, 88)
Me.Label3.Name = "Label3"
Me.Label3.TabIndex = 2
Me.Label3.Text = "服务器:"
Me.Label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight
'
'cmdName
'
Me.cmdName.Location = New System.Drawing.Point(96, 16)
Me.cmdName.Name = "cmdName"
Me.cmdName.Size = New System.Drawing.Size(100, 20)
Me.cmdName.TabIndex = 3
'
'txtPwd
'
Me.txtPwd.Location = New System.Drawing.Point(96, 48)
Me.txtPwd.Name = "txtPwd"
Me.txtPwd.PasswordChar = Microsoft.VisualBasic.ChrW(42)
Me.txtPwd.TabIndex = 4
Me.txtPwd.Text = ""
Me.ToolTip1.SetToolTip(Me.txtPwd, "请输入密码")
'
'txtServer
'
Me.txtServer.Location = New System.Drawing.Point(96, 88)
Me.txtServer.Name = "txtServer"
Me.txtServer.TabIndex = 5
Me.txtServer.Text = "(local)"
'
'Label4
'
Me.Label4.AutoSize = True
Me.Label4.ForeColor = System.Drawing.Color.Red
Me.Label4.Location = New System.Drawing.Point(208, 56)
Me.Label4.Name = "Label4"
Me.Label4.Size = New System.Drawing.Size(54, 17)
Me.Label4.TabIndex = 6
Me.Label4.Text = "大写状态"
Me.Label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
Me.Label4.Visible = False
'
'AxNiceCheck1
'
Me.AxNiceCheck1.Location = New System.Drawing.Point(208, 88)
Me.AxNiceCheck1.Name = "AxNiceCheck1"
Me.AxNiceCheck1.OcxState = CType(resources.GetObject("AxNiceCheck1.OcxState"), System.Windows.Forms.AxHost.State)
Me.AxNiceCheck1.Size = New System.Drawing.Size(72, 13)
Me.AxNiceCheck1.TabIndex = 7
'
'Label5
'
Me.Label5.AutoSize = True
Me.Label5.Font = New System.Drawing.Font("宋体", 9.0!, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.Label5.ForeColor = System.Drawing.SystemColors.ControlText
Me.Label5.Location = New System.Drawing.Point(24, 128)
Me.Label5.Name = "Label5"
Me.Label5.Size = New System.Drawing.Size(66, 17)
Me.Label5.TabIndex = 8
Me.Label5.Text = "设置数据库"
Me.Label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
'
'AxNiceButton1
'
Me.AxNiceButton1.Location = New System.Drawing.Point(112, 120)
Me.AxNiceButton1.Name = "AxNiceButton1"
Me.AxNiceButton1.OcxState = CType(resources.GetObject("AxNiceButton1.OcxState"), System.Windows.Forms.AxHost.State)
Me.AxNiceButton1.Size = New System.Drawing.Size(64, 24)
Me.AxNiceButton1.TabIndex = 9
Me.AxNiceButton1.Tag = "3"
'
'AxNiceButton2
'
Me.AxNiceButton2.Location = New System.Drawing.Point(200, 120)
Me.AxNiceButton2.Name = "AxNiceButton2"
Me.AxNiceButton2.OcxState = CType(resources.GetObject("AxNiceButton2.OcxState"), System.Windows.Forms.AxHost.State)
Me.AxNiceButton2.Size = New System.Drawing.Size(64, 24)
Me.AxNiceButton2.TabIndex = 10
'
'login
'
Me.AutoScaleBaseSize = New System.Drawing.Size(6, 14)
Me.BackColor = System.Drawing.Color.CornflowerBlue
Me.ClientSize = New System.Drawing.Size(296, 158)
Me.Controls.Add(Me.AxNiceButton2)
Me.Controls.Add(Me.AxNiceButton1)
Me.Controls.Add(Me.Label5)
Me.Controls.Add(Me.AxNiceCheck1)
Me.Controls.Add(Me.Label4)
Me.Controls.Add(Me.txtServer)
Me.Controls.Add(Me.txtPwd)
Me.Controls.Add(Me.cmdName)
Me.Controls.Add(Me.Label3)
Me.Controls.Add(Me.Label2)
Me.Controls.Add(Me.Label1)
Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
Me.MaximizeBox = False
Me.Name = "login"
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
Me.Tag = "End"
Me.Text = "用户登录"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -