📄 frmadmin.frm
字号:
VERSION 5.00
Object = "{899348F9-A53A-4D9E-9438-F97F0E81E2DB}#1.0#0"; "Lvbuttons.ocx"
Begin VB.Form frmlogin
BorderStyle = 5 'Sizable ToolWindow
Caption = "Form1"
ClientHeight = 1950
ClientLeft = 4695
ClientTop = 5490
ClientWidth = 7335
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1950
ScaleWidth = 7335
ShowInTaskbar = 0 'False
Begin VB.TextBox Text1
BeginProperty Font
Name = "Tahoma"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 3960
TabIndex = 3
Text = "ADMIN"
Top = 120
Width = 3255
End
Begin VB.TextBox Text2
BeginProperty Font
Name = "Tahoma"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
IMEMode = 3 'DISABLE
Left = 3960
PasswordChar = "*"
TabIndex = 2
Text = "ADMIN"
Top = 600
Width = 3255
End
Begin VB.CommandButton Command1
Height = 495
Left = -3720
TabIndex = 0
Top = 6720
Visible = 0 'False
Width = 1215
End
Begin LVbuttons.LaVolpeButton cmdok
Height = 615
Left = 3960
TabIndex = 1
Top = 1200
Width = 1575
_ExtentX = 2778
_ExtentY = 1085
BTYPE = 3
TX = "Ok"
ENAB = -1 'True
BeginProperty FONT {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Times New Roman"
Size = 14.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
COLTYPE = 2
BCOL = 14215660
FCOL = 0
FCOLO = 0
EMBOSSM = 12632256
EMBOSSS = 16777215
MPTR = 0
MICON = "frmadmin.frx":0000
ALIGN = 1
IMGLST = "(None)"
IMGICON = "(None)"
ICONAlign = 0
ORIENT = 0
STYLE = 1
IconSize = 2
SHOWF = -1 'True
BSTYLE = 0
End
Begin LVbuttons.LaVolpeButton cmdcancel
Height = 615
Left = 5520
TabIndex = 4
Top = 1200
Width = 1575
_ExtentX = 2778
_ExtentY = 1085
BTYPE = 3
TX = "Cancel"
ENAB = -1 'True
BeginProperty FONT {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Times New Roman"
Size = 14.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
COLTYPE = 2
BCOL = 14215660
FCOL = 0
FCOLO = 0
EMBOSSM = 12632256
EMBOSSS = 16777215
MPTR = 0
MICON = "frmadmin.frx":001C
ALIGN = 1
IMGLST = "(None)"
IMGICON = "(None)"
ICONAlign = 0
ORIENT = 0
STYLE = 1
IconSize = 2
SHOWF = -1 'True
BSTYLE = 0
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "User Name"
BeginProperty Font
Name = "Tahoma"
Size = 14.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 2280
TabIndex = 6
Top = 240
Width = 1575
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "Password"
BeginProperty Font
Name = "Tahoma"
Size = 14.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 2400
TabIndex = 5
Top = 720
Width = 1575
End
Begin VB.Image Image1
Height = 1080
Left = 0
Picture = "frmadmin.frx":0038
Stretch = -1 'True
Top = -120
Width = 2565
End
End
Attribute VB_Name = "frmlogin"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'Option Compare Text
Private Sub CMDCANCEL_Click()
End
End Sub
Private Sub Command1_Click()
Mainmenu.Show
Unload Me
End Sub
Private Sub Form_Activate()
cmdok.SetFocus
End Sub
Private Sub Form_Load()
'Set Skinner1.Forms = Forms
End Sub
Private Sub cmdok_Click()
cnn
On Error GoTo b
Dim found As Boolean
Set rs = db.Execute("SELECT * FROM tblUSERS")
With rs
.MoveFirst
Do Until .EOF
If Text1.Text = !UserName And Text2.Text = !Password Then
found = True
Exit Do
End If
.MoveNext
Loop
If found = True Then
'MsgBox "ACCEPTED"
RESTRICT.Show
Unload Me
Else
MsgBox "log-in error"
End If
End With
b:
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -