📄 frm_login.frm
字号:
VERSION 5.00
Begin VB.Form frm_login
BorderStyle = 4 'Fixed ToolWindow
Caption = "系统登录"
ClientHeight = 4515
ClientLeft = 45
ClientTop = 180
ClientWidth = 4215
ControlBox = 0 'False
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4515
ScaleWidth = 4215
ShowInTaskbar = 0 'False
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton Command1
Caption = "确定(&O)"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 370
Left = 960
TabIndex = 9
Top = 2880
Width = 1210
End
Begin VB.CommandButton Command2
Caption = "退出(&Q)"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 370
Left = 2280
TabIndex = 8
Top = 2880
Width = 1210
End
Begin VB.CheckBox Check1
Caption = "记住我的用户名和密码"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 372
Left = 960
TabIndex = 7
Top = 2040
Width = 3012
End
Begin VB.TextBox login_password
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 310
IMEMode = 3 'DISABLE
Left = 1560
MaxLength = 6
PasswordChar = "*"
TabIndex = 6
ToolTipText = "输入卡密码"
Top = 1560
Width = 2290
End
Begin VB.TextBox login_name
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 285
Left = 1560
TabIndex = 0
Top = 1200
Width = 2290
End
Begin VB.Label Label3
BackColor = &H80000009&
Caption = "请输入登录名称和用户密码"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 252
Left = 960
TabIndex = 5
Top = 360
Width = 3132
End
Begin VB.Image Image2
Height = 480
Index = 1
Left = 240
Picture = "frm_login.frx":0000
Top = 240
Width = 480
End
Begin VB.Shape Shape1
BorderColor = &H00C0C0C0&
FillColor = &H00FFFFFF&
FillStyle = 0 'Solid
Height = 855
Left = 0
Top = 0
Width = 5055
End
Begin VB.Label Label4
BackColor = &H80000005&
Caption = "Enter your user name and password and connect to the Server"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Index = 1
Left = 240
TabIndex = 4
Top = 120
Width = 3615
End
Begin VB.Image Image2
Height = 320
Index = 0
Left = 4200
Top = 120
Width = 320
End
Begin VB.Label Label2
BorderStyle = 1 'Fixed Single
Caption = "正在登录..."
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 732
Left = 360
TabIndex = 3
Top = 3600
Width = 3492
End
Begin VB.Label Label4
Caption = "登录编号:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 264
Index = 0
Left = 360
TabIndex = 2
Top = 1200
Width = 1092
End
Begin VB.Label Label1
Caption = "用户密码:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 264
Left = 360
TabIndex = 1
Top = 1560
Width = 1104
End
End
Attribute VB_Name = "frm_login"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Declare Function GetVolumeInformation Lib _
"kernel32.dll" Alias "GetVolumeInformationA" (ByVal _
lpRootPathName As String, ByVal lpVolumeNameBuffer As _
String, ByVal nVolumeNameSize As Integer, _
lpVolumeSerialNumber As Long, lpMaximumComponentLength _
As Long, lpFileSystemFlags As Long, ByVal _
lpFileSystemNameBuffer As String, ByVal _
nFileSystemNameSize As Long) As Long
Dim psUserdb As New ADODB.Recordset
Dim rs As New ADODB.Recordset
Dim psUser_bz As String
Dim i As Integer
Dim strKeyS As String
Dim strKey As String
Dim skeyPI(8) As Byte
Dim skeyID(8) As Byte
Dim skeyLA(8) As Byte
Dim n As Integer
Dim sN As String
Dim snn As String
'RegSvr32 MyCtrl.ocx
Private Declare Function LoadLibraryRegister Lib "kernel32" Alias "LoadLibraryA" (ByVal lpLibFileName As String) As Long
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -