📄 form1.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form login
BackColor = &H00FF8080&
Caption = "登陆"
ClientHeight = 3675
ClientLeft = 5010
ClientTop = 4005
ClientWidth = 4845
FillColor = &H0080C0FF&
ForeColor = &H000000FF&
Icon = "Form1.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
ScaleHeight = 3675
ScaleWidth = 4845
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 240
Top = 600
Visible = 0 'False
Width = 1200
_ExtentX = 2117
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 1
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 3
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "DSN=shoulouinfo"
OLEDBString = ""
OLEDBFile = ""
DataSourceName = "shoulouinfo"
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from 系统信息"
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 Command2
Caption = "取消"
Height = 375
Left = 2880
TabIndex = 4
Top = 2160
Width = 975
End
Begin VB.CommandButton Command1
BackColor = &H00C0FFFF&
Caption = "确定"
Default = -1 'True
Height = 375
Left = 1200
MaskColor = &H0080FFFF&
TabIndex = 3
Top = 2160
Width = 975
End
Begin VB.TextBox Text2
Height = 375
IMEMode = 3 'DISABLE
Left = 2280
PasswordChar = "*"
TabIndex = 1
Top = 1560
Width = 1815
End
Begin VB.TextBox Text1
Height = 375
Left = 2280
TabIndex = 0
Top = 960
Width = 1815
End
Begin VB.PictureBox Picture2
Appearance = 0 'Flat
BackColor = &H00FF8080&
BorderStyle = 0 'None
ForeColor = &H80000008&
Height = 495
Left = 840
Picture = "Form1.frx":08CA
ScaleHeight = 495
ScaleWidth = 495
TabIndex = 5
ToolTipText = "请输入密码"
Top = 1560
Width = 495
End
Begin VB.PictureBox Picture1
Appearance = 0 'Flat
BackColor = &H00FF8080&
BorderStyle = 0 'None
ForeColor = &H80000008&
Height = 495
Left = 840
Picture = "Form1.frx":0BD4
ScaleHeight = 495
ScaleWidth = 495
TabIndex = 2
ToolTipText = "请输入用户名"
Top = 960
Width = 495
End
Begin VB.Label Label5
BackColor = &H00FF8080&
Caption = "tianhao0504@163.com"
ForeColor = &H00FFFFFF&
Height = 255
Left = 1560
TabIndex = 10
Top = 3120
Width = 1815
End
Begin VB.Label Label4
BackColor = &H00FF8080&
Caption = "版权所有:沈阳理工大学售楼信息管理系统 V1.0"
ForeColor = &H00FFFFFF&
Height = 255
Left = 480
TabIndex = 9
Top = 2760
Width = 4095
End
Begin VB.Label Label3
BackColor = &H00FF8080&
Caption = "售楼信息管理系统"
BeginProperty Font
Name = "华文新魏"
Size = 21.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0080FFFF&
Height = 615
Left = 720
TabIndex = 8
Top = 240
Width = 3615
End
Begin VB.Label Label2
Alignment = 1 'Right Justify
BackColor = &H00FF8080&
Caption = "密码:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 255
Left = 1440
TabIndex = 7
Top = 1680
Width = 735
End
Begin VB.Label Label1
Alignment = 1 'Right Justify
BackColor = &H00FF8080&
Caption = "用户名:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 255
Left = 1440
TabIndex = 6
Top = 1080
Width = 855
End
End
Attribute VB_Name = "login"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim micount As Integer
Private Sub Command1_Click()
Dim sqlstr As String
sqlstr = "select *from 系统信息 where 用户名='" & Text1 & "'"
Adodc1.RecordSource = sqlstr
Adodc1.Refresh
If Adodc1.Recordset.BOF Then
MsgBox "用户名错误,重新输入", vbExclamation, " 警告 "
Text1.Text = ""
Text1.SetFocus
Else
If Adodc1.Recordset.Fields("密码") = Text2 Then
MDIMenu.Show
Unload Me
Else
MsgBox "密码错误,重新输入", vbExclamation, "警告"
Text2.Text = ""
Text2.SetFocus
End If
End If
micount = micount + 1
If micount = 3 Then Unload Me
Exit Sub
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -