📄 frmodbclogon.vb
字号:
Option Strict Off
Option Explicit On
Imports VB = Microsoft.VisualBasic
Friend Class frmODBCLogon
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()
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 cmdCancel As System.Windows.Forms.Button
Public WithEvents cmdOK As System.Windows.Forms.Button
Public WithEvents txtUID As System.Windows.Forms.TextBox
Public WithEvents txtPWD As System.Windows.Forms.TextBox
Public WithEvents txtDatabase As System.Windows.Forms.TextBox
Public WithEvents cboDSNList As System.Windows.Forms.ComboBox
Public WithEvents txtServer As System.Windows.Forms.TextBox
Public WithEvents cboDrivers As System.Windows.Forms.ComboBox
Public WithEvents _lblStep3_1 As System.Windows.Forms.Label
Public WithEvents _lblStep3_2 As System.Windows.Forms.Label
Public WithEvents _lblStep3_3 As System.Windows.Forms.Label
Public WithEvents _lblStep3_4 As System.Windows.Forms.Label
Public WithEvents _lblStep3_5 As System.Windows.Forms.Label
Public WithEvents _lblStep3_6 As System.Windows.Forms.Label
Public WithEvents _fraStep3_0 As System.Windows.Forms.GroupBox
Public WithEvents fraStep3 As Microsoft.VisualBasic.Compatibility.VB6.GroupBoxArray
Public WithEvents lblStep3 As Microsoft.VisualBasic.Compatibility.VB6.LabelArray
'注意: 以下过程是 Windows 窗体设计器所必需的
'可以使用 Windows 窗体设计器来修改它。
'不要使用代码编辑器修改它。
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmODBCLogon))
Me.components = New System.ComponentModel.Container()
Me.ToolTip1 = New System.Windows.Forms.ToolTip(components)
Me.ToolTip1.Active = True
Me.cmdCancel = New System.Windows.Forms.Button
Me.cmdOK = New System.Windows.Forms.Button
Me._fraStep3_0 = New System.Windows.Forms.GroupBox
Me.txtUID = New System.Windows.Forms.TextBox
Me.txtPWD = New System.Windows.Forms.TextBox
Me.txtDatabase = New System.Windows.Forms.TextBox
Me.cboDSNList = New System.Windows.Forms.ComboBox
Me.txtServer = New System.Windows.Forms.TextBox
Me.cboDrivers = New System.Windows.Forms.ComboBox
Me._lblStep3_1 = New System.Windows.Forms.Label
Me._lblStep3_2 = New System.Windows.Forms.Label
Me._lblStep3_3 = New System.Windows.Forms.Label
Me._lblStep3_4 = New System.Windows.Forms.Label
Me._lblStep3_5 = New System.Windows.Forms.Label
Me._lblStep3_6 = New System.Windows.Forms.Label
Me.fraStep3 = New Microsoft.VisualBasic.Compatibility.VB6.GroupBoxArray(components)
Me.lblStep3 = New Microsoft.VisualBasic.Compatibility.VB6.LabelArray(components)
CType(Me.fraStep3, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.lblStep3, System.ComponentModel.ISupportInitialize).BeginInit()
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog
Me.Text = "ODBC 登录"
Me.ClientSize = New System.Drawing.Size(298, 212)
Me.Location = New System.Drawing.Point(190, 117)
Me.ControlBox = False
Me.MaximizeBox = False
Me.MinimizeBox = False
Me.ShowInTaskbar = False
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.BackColor = System.Drawing.SystemColors.Control
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 = "frmODBCLogon"
Me.cmdCancel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
Me.CancelButton = Me.cmdCancel
Me.cmdCancel.Text = "取消"
Me.cmdCancel.Size = New System.Drawing.Size(96, 30)
Me.cmdCancel.Location = New System.Drawing.Point(168, 177)
Me.cmdCancel.TabIndex = 13
Me.cmdCancel.BackColor = System.Drawing.SystemColors.Control
Me.cmdCancel.CausesValidation = True
Me.cmdCancel.Enabled = True
Me.cmdCancel.ForeColor = System.Drawing.SystemColors.ControlText
Me.cmdCancel.Cursor = System.Windows.Forms.Cursors.Default
Me.cmdCancel.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.cmdCancel.TabStop = True
Me.cmdCancel.Name = "cmdCancel"
Me.cmdOK.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
Me.cmdOK.Text = "确定(&O)"
Me.cmdOK.Size = New System.Drawing.Size(96, 30)
Me.cmdOK.Location = New System.Drawing.Point(61, 177)
Me.cmdOK.TabIndex = 12
Me.cmdOK.BackColor = System.Drawing.SystemColors.Control
Me.cmdOK.CausesValidation = True
Me.cmdOK.Enabled = True
Me.cmdOK.ForeColor = System.Drawing.SystemColors.ControlText
Me.cmdOK.Cursor = System.Windows.Forms.Cursors.Default
Me.cmdOK.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.cmdOK.TabStop = True
Me.cmdOK.Name = "cmdOK"
Me._fraStep3_0.Text = "连接值"
Me._fraStep3_0.Size = New System.Drawing.Size(282, 161)
Me._fraStep3_0.Location = New System.Drawing.Point(8, 8)
Me._fraStep3_0.TabIndex = 14
Me._fraStep3_0.BackColor = System.Drawing.SystemColors.Control
Me._fraStep3_0.Enabled = True
Me._fraStep3_0.ForeColor = System.Drawing.SystemColors.ControlText
Me._fraStep3_0.RightToLeft = System.Windows.Forms.RightToLeft.No
Me._fraStep3_0.Visible = True
Me._fraStep3_0.Name = "_fraStep3_0"
Me.txtUID.AutoSize = False
Me.txtUID.Size = New System.Drawing.Size(201, 20)
Me.txtUID.Location = New System.Drawing.Point(75, 40)
Me.txtUID.TabIndex = 3
Me.txtUID.AcceptsReturn = True
Me.txtUID.TextAlign = System.Windows.Forms.HorizontalAlignment.Left
Me.txtUID.BackColor = System.Drawing.SystemColors.Window
Me.txtUID.CausesValidation = True
Me.txtUID.Enabled = True
Me.txtUID.ForeColor = System.Drawing.SystemColors.WindowText
Me.txtUID.HideSelection = True
Me.txtUID.ReadOnly = False
Me.txtUID.Maxlength = 0
Me.txtUID.Cursor = System.Windows.Forms.Cursors.IBeam
Me.txtUID.MultiLine = False
Me.txtUID.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.txtUID.ScrollBars = System.Windows.Forms.ScrollBars.None
Me.txtUID.TabStop = True
Me.txtUID.Visible = True
Me.txtUID.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
Me.txtUID.Name = "txtUID"
Me.txtPWD.AutoSize = False
Me.txtPWD.Size = New System.Drawing.Size(201, 20)
Me.txtPWD.Location = New System.Drawing.Point(75, 62)
Me.txtPWD.TabIndex = 5
Me.txtPWD.AcceptsReturn = True
Me.txtPWD.TextAlign = System.Windows.Forms.HorizontalAlignment.Left
Me.txtPWD.BackColor = System.Drawing.SystemColors.Window
Me.txtPWD.CausesValidation = True
Me.txtPWD.Enabled = True
Me.txtPWD.ForeColor = System.Drawing.SystemColors.WindowText
Me.txtPWD.HideSelection = True
Me.txtPWD.ReadOnly = False
Me.txtPWD.Maxlength = 0
Me.txtPWD.Cursor = System.Windows.Forms.Cursors.IBeam
Me.txtPWD.MultiLine = False
Me.txtPWD.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.txtPWD.ScrollBars = System.Windows.Forms.ScrollBars.None
Me.txtPWD.TabStop = True
Me.txtPWD.Visible = True
Me.txtPWD.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
Me.txtPWD.Name = "txtPWD"
Me.txtDatabase.AutoSize = False
Me.txtDatabase.Size = New System.Drawing.Size(201, 20)
Me.txtDatabase.Location = New System.Drawing.Point(75, 84)
Me.txtDatabase.TabIndex = 7
Me.txtDatabase.AcceptsReturn = True
Me.txtDatabase.TextAlign = System.Windows.Forms.HorizontalAlignment.Left
Me.txtDatabase.BackColor = System.Drawing.SystemColors.Window
Me.txtDatabase.CausesValidation = True
Me.txtDatabase.Enabled = True
Me.txtDatabase.ForeColor = System.Drawing.SystemColors.WindowText
Me.txtDatabase.HideSelection = True
Me.txtDatabase.ReadOnly = False
Me.txtDatabase.Maxlength = 0
Me.txtDatabase.Cursor = System.Windows.Forms.Cursors.IBeam
Me.txtDatabase.MultiLine = False
Me.txtDatabase.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.txtDatabase.ScrollBars = System.Windows.Forms.ScrollBars.None
Me.txtDatabase.TabStop = True
Me.txtDatabase.Visible = True
Me.txtDatabase.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
Me.txtDatabase.Name = "txtDatabase"
Me.cboDSNList.Size = New System.Drawing.Size(200, 21)
Me.cboDSNList.Location = New System.Drawing.Point(75, 16)
Me.cboDSNList.Sorted = True
Me.cboDSNList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
Me.cboDSNList.TabIndex = 1
Me.cboDSNList.BackColor = System.Drawing.SystemColors.Window
Me.cboDSNList.CausesValidation = True
Me.cboDSNList.Enabled = True
Me.cboDSNList.ForeColor = System.Drawing.SystemColors.WindowText
Me.cboDSNList.IntegralHeight = True
Me.cboDSNList.Cursor = System.Windows.Forms.Cursors.Default
Me.cboDSNList.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.cboDSNList.TabStop = True
Me.cboDSNList.Visible = True
Me.cboDSNList.Name = "cboDSNList"
Me.txtServer.AutoSize = False
Me.txtServer.Enabled = False
Me.txtServer.Size = New System.Drawing.Size(201, 22)
Me.txtServer.Location = New System.Drawing.Point(75, 129)
Me.txtServer.TabIndex = 11
Me.txtServer.AcceptsReturn = True
Me.txtServer.TextAlign = System.Windows.Forms.HorizontalAlignment.Left
Me.txtServer.BackColor = System.Drawing.SystemColors.Window
Me.txtServer.CausesValidation = True
Me.txtServer.ForeColor = System.Drawing.SystemColors.WindowText
Me.txtServer.HideSelection = True
Me.txtServer.ReadOnly = False
Me.txtServer.Maxlength = 0
Me.txtServer.Cursor = System.Windows.Forms.Cursors.IBeam
Me.txtServer.MultiLine = False
Me.txtServer.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.txtServer.ScrollBars = System.Windows.Forms.ScrollBars.None
Me.txtServer.TabStop = True
Me.txtServer.Visible = True
Me.txtServer.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
Me.txtServer.Name = "txtServer"
Me.cboDrivers.Enabled = False
Me.cboDrivers.Size = New System.Drawing.Size(201, 21)
Me.cboDrivers.Location = New System.Drawing.Point(75, 106)
Me.cboDrivers.Sorted = True
Me.cboDrivers.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
Me.cboDrivers.TabIndex = 9
Me.cboDrivers.BackColor = System.Drawing.SystemColors.Window
Me.cboDrivers.CausesValidation = True
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -