📄 kl.frm
字号:
VERSION 5.00
Object = "{F0D2F211-CCB0-11D0-A316-00AA00688B10}#1.0#0"; "MSDATLST.OCX"
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Form9
ClientHeight = 1920
ClientLeft = 60
ClientTop = 60
ClientWidth = 4065
ControlBox = 0 'False
LinkTopic = "Form9"
MaxButton = 0 'False
MinButton = 0 'False
Moveable = 0 'False
ScaleHeight = 1920
ScaleWidth = 4065
StartUpPosition = 2 '屏幕中心
Begin VB.Frame Frame1
Height = 1935
Left = 45
TabIndex = 0
Top = -45
Width = 3975
Begin VB.TextBox Text2
Height = 270
Left = 3720
TabIndex = 7
Top = 960
Visible = 0 'False
Width = 180
End
Begin VB.CommandButton Command2
Caption = "确定"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1680
TabIndex = 3
Top = 1320
Width = 735
End
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 120
Top = 0
Visible = 0 'False
Width = 1200
_ExtentX = 2117
_ExtentY = 582
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=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=\ltgl\ltgl.mdb"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=\ltgl\ltgl.mdb"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "kl"
Caption = "Adodc1"
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 Text1
Height = 390
IMEMode = 3 'DISABLE
Left = 1560
PasswordChar = "*"
TabIndex = 2
Top = 720
Width = 1815
End
Begin VB.CommandButton Command1
Caption = "退出"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2640
TabIndex = 4
Top = 1320
Width = 735
End
Begin MSDataListLib.DataCombo DataCombo1
Bindings = "kl.frx":0000
Height = 330
Left = 1560
TabIndex = 1
Top = 240
Width = 1935
_ExtentX = 3413
_ExtentY = 582
_Version = 393216
ListField = "用户姓名"
BoundColumn = "用户密码"
Text = ""
End
Begin VB.Image Image1
Height = 495
Left = 360
Top = 1200
Width = 735
End
Begin VB.Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "用户密码:"
Height = 180
Left = 480
TabIndex = 6
Top = 840
Width = 900
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "用户姓名:"
Height = 180
Index = 0
Left = 480
TabIndex = 5
Top = 360
Width = 900
End
End
End
Attribute VB_Name = "Form9"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
End
End Sub
Private Sub Command2_Click()
If Trim(DataCombo1.Text) <> "" Then
If Trim(Text1.Text) = Trim(Text2.Text) Then
MDIForm1.CSSZ = True
MDIForm1.CXDY = True
MDIForm1.RKGL = True
MDIForm1.CKGL = True
MDIForm1.SJGL = True
Unload Form9
Else
MsgBox "密码错误,再试一次!", , "登录"
Text1.Text = ""
Text1.SetFocus
End If
Else
MsgBox "用户姓名不能为空!请选择用户姓名", , "登录"
End If
End Sub
Private Sub DataCombo1_Click(Area As Integer)
Text2.Text = DataCombo1.BoundText
End Sub
Private Sub DataCombo1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
KeyAscii = 0
SendKeys "{TAB}"
End If
End Sub
Private Sub Form_Load()
If App.PrevInstance Then '检视前一版本
MsgBox "此程式已经在执行中!", 48
End
End If
Dim I
I = 1
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
KeyAscii = 0
SendKeys "{TAB}"
End If
End Sub
Private Sub Text2_Change()
DataCombo1.BoundText = Text2.Text
End Sub
Private Sub Text3_Change()
End Sub
Private Sub Text3_Click()
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -