📄 land.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form land
Caption = "登陆"
ClientHeight = 3990
ClientLeft = 60
ClientTop = 450
ClientWidth = 3120
LinkTopic = "Form1"
Picture = "land.frx":0000
ScaleHeight = 3990
ScaleWidth = 3120
StartUpPosition = 2 '屏幕中心
Begin MSAdodcLib.Adodc Adodc1
Height = 735
Left = 480
Top = 3360
Visible = 0 'False
Width = 1455
_ExtentX = 2566
_ExtentY = 1296
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.4.0;Data Source=用户.mdb;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=用户.mdb;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "用户"
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.CommandButton Command3
BackColor = &H00C0FFFF&
Caption = "注册"
Height = 375
Left = 120
Style = 1 'Graphical
TabIndex = 6
Top = 3000
Width = 735
End
Begin VB.CommandButton Command2
BackColor = &H00C0FFFF&
Caption = "退出"
Height = 375
Left = 2280
Style = 1 'Graphical
TabIndex = 5
Top = 3000
Width = 735
End
Begin VB.CommandButton Command1
BackColor = &H00C0FFFF&
Caption = "登陆"
Height = 375
Left = 1200
MaskColor = &H0000FFFF&
Style = 1 'Graphical
TabIndex = 4
Top = 3000
Width = 735
End
Begin VB.TextBox Text2
Height = 495
IMEMode = 3 'DISABLE
Left = 1320
PasswordChar = "*"
TabIndex = 3
Top = 1560
Width = 1335
End
Begin VB.TextBox Text1
Height = 495
Left = 1320
TabIndex = 1
Top = 600
Width = 1335
End
Begin VB.Label Label2
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "密码"
BeginProperty Font
Name = "楷体_GB2312"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF00FF&
Height = 375
Left = 240
TabIndex = 2
Top = 1680
Width = 975
End
Begin VB.Label Label1
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "用户名"
BeginProperty Font
Name = "楷体_GB2312"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF00FF&
Height = 375
Left = 240
TabIndex = 0
Top = 720
Width = 975
End
End
Attribute VB_Name = "land"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Adodc1.Refresh
'If Not Adodc1.Recordset.BOF Then
'Adodc1.Recordset.MoveFirst
'End If
Do While Not Adodc1.Recordset.EOF
If Text1.Text = "" Then
MsgBox ("请输入用户名")
Exit Do
ElseIf Adodc1.Recordset("用户名") = Text1.Text Then
If Adodc1.Recordset("密码") = Text2.Text Then
main.Show
land.Hide
Exit Do
Else: MsgBox ("密码错误")
End If
Else: Adodc1.Recordset.MoveNext
End If
Loop
If Adodc1.Recordset.EOF Or Adodc1.Recordset.BOF Then
MsgBox ("此用户未注册")
End If
'If Text1.Text = "1234" And Text2.Text = "1234" Then
'main.Show
'land.Hide
'ElseIf Text1.Text = "" Then
'MsgBox ("请输入用户名")
'ElseIf Text2.Text = "" Then
'MsgBox ("请输入密码")
'ElseIf Text1.Text <> "1234" Then
'MsgBox ("用户名错误")
'ElseIf Text2.Text <> "1234" Then
'MsgBox ("密码错误")
'End If
End Sub
Private Sub Command2_Click()
End
End Sub
Private Sub Command3_Click()
revise.Show
land.Hide
End Sub
Private Sub Form_Load()
Text1.Text = ""
Text2.Text = ""
Unload welcome
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -