📄 fmlog.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "Msadodc.OCX"
Begin VB.Form fmlog
BackColor = &H00C0FFFF&
Caption = "系统登录"
ClientHeight = 4080
ClientLeft = 3900
ClientTop = 1455
ClientWidth = 5490
ForeColor = &H00C0C000&
LinkTopic = "Form1"
ScaleHeight = 4080
ScaleWidth = 5490
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 600
Top = 3600
Visible = 0 'False
Width = 1815
_ExtentX = 3201
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 2
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=hgrs;Data Source=SERVER"
OLEDBString = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=hgrs;Data Source=SERVER"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = "sa"
Password = ""
RecordSource = "tus"
Caption = "Adcus"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.TextBox Tusname
Height = 375
Left = 2400
TabIndex = 6
Top = 960
Width = 1335
End
Begin MSAdodcLib.Adodc Adc1
Height = 375
Left = 2400
Top = 3600
Visible = 0 'False
Width = 2175
_ExtentX = 3836
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=hgrs;Data Source=SERVER"
OLEDBString = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=hgrs;Data Source=SERVER"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
Caption = "Adc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.CommandButton Command2
BackColor = &H8000000B&
Caption = "取消"
BeginProperty Font
Name = "楷体_GB2312"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3000
MaskColor = &H0000FFFF&
TabIndex = 3
Top = 2760
Width = 975
End
Begin VB.CommandButton Command1
Caption = "确定"
BeginProperty Font
Name = "楷体_GB2312"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1080
TabIndex = 2
Top = 2760
Width = 855
End
Begin VB.TextBox Tuspwd
Height = 375
IMEMode = 3 'DISABLE
Left = 2400
PasswordChar = "*"
TabIndex = 0
Top = 1680
Width = 1335
End
Begin VB.Label Label3
Alignment = 2 'Center
BackColor = &H00C0FFFF&
Caption = "华冈公司人事管理系统V2.0"
BeginProperty Font
Name = "楷体_GB2312"
Size = 15.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C00000&
Height = 375
Left = 480
TabIndex = 5
Top = 360
Width = 4335
End
Begin VB.Label Label2
Alignment = 2 'Center
BackColor = &H00C0FFFF&
Caption = "密 码"
BeginProperty Font
Name = "楷体_GB2312"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C00000&
Height = 375
Left = 1320
TabIndex = 4
Top = 1800
Width = 855
End
Begin VB.Label Label1
Alignment = 2 'Center
BackColor = &H00C0FFFF&
Caption = "用户名"
BeginProperty Font
Name = "楷体_GB2312"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C00000&
Height = 375
Left = 1320
TabIndex = 1
Top = 1080
Width = 855
End
End
Attribute VB_Name = "fmlog"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
Dim usn, uspwd As String
usn = Tusname.Text
uspwd = Tuspwd.Text
Adc1.RecordSource = "select * from tus where usid='" & usn & "'and uspwd='" & uspwd & "'"
Adc1.Refresh
If Adc1.Recordset.EOF Then
MsgBox ("错误")
Else
MDIFm.Show
fmlog.Hide
End If
End Sub
Private Sub Text2_Change()
End Sub
Private Sub Command2_Click()
End
End Sub
Private Sub Form_Activate()
Tusname.SetFocus
End Sub
Private Sub Tusname_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Tuspwd.SetFocus
End If
End Sub
Private Sub Tuspwd_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Command1.SetFocus
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -