📄 form7.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Form7
Caption = "超级用户登录"
ClientHeight = 2370
ClientLeft = 60
ClientTop = 450
ClientWidth = 3435
LinkTopic = "Form7"
ScaleHeight = 2370
ScaleWidth = 3435
StartUpPosition = 3 '窗口缺省
Begin VB.Frame Frame1
Caption = "进入程序"
Height = 2295
Left = 0
TabIndex = 2
Top = 0
Width = 3375
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1560
TabIndex = 0
Top = 360
Width = 1455
End
Begin VB.TextBox Text2
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
IMEMode = 3 'DISABLE
Left = 1560
PasswordChar = "*"
TabIndex = 1
Top = 960
Width = 1455
End
Begin VB.CommandButton Command1
Caption = "确定"
Default = -1 'True
Height = 375
Left = 360
TabIndex = 8
Top = 1560
Width = 1095
End
Begin VB.CommandButton Command2
Cancel = -1 'True
Caption = "取消"
Height = 375
Left = 1800
TabIndex = 7
Top = 1560
Width = 1095
End
Begin VB.TextBox Text3
DataField = "用户名"
DataSource = "A1"
Height = 375
Left = 0
TabIndex = 6
Text = "Text3"
Top = 240
Visible = 0 'False
Width = 255
End
Begin VB.TextBox Text4
DataField = "密码"
DataSource = "A1"
Height = 270
Left = 0
TabIndex = 5
Text = "Text4"
Top = 840
Visible = 0 'False
Width = 255
End
Begin VB.TextBox Text5
DataField = "查询"
DataSource = "A1"
Height = 375
Left = 480
TabIndex = 4
Text = "\"
Top = 2520
Width = 855
End
Begin VB.TextBox Text6
DataField = "输入"
DataSource = "A1"
Height = 495
Left = 2040
TabIndex = 3
Text = "\"
Top = 2520
Width = 975
End
Begin MSAdodcLib.Adodc A1
Height = 330
Left = 720
Top = 3120
Visible = 0 'False
Width = 3240
_ExtentX = 5715
_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.4.0;Data Source=gm123.mdb;Persist Security Info=False;Jet OLEDB:Database Password=3328571"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=gm123.mdb;Persist Security Info=False;Jet OLEDB:Database Password=3328571"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "用户"
Caption = ""
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.Label Label1
Caption = "用户名:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 480
TabIndex = 10
Top = 480
Width = 975
End
Begin VB.Label Label2
Caption = "密 码:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 480
TabIndex = 9
Top = 960
Width = 975
End
End
End
Attribute VB_Name = "Form7"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Trim(Text1.Text) = Trim(Text3.Text) And Trim(Text2.Text) = Trim(Text4.Text) Then
Form6.Show
Unload Me
Else
For X = 1 To 1
If A1.Recordset.EOF = True Then
MsgBox "您输入的用户名和密码有误,请重新输入!", 16, "出错:"
Text1.Text = ""
Text2.Text = ""
A1.Recordset.AbsolutePosition = 1
Else
If Trim(Text1.Text) = Trim(Text3.Text) And Trim(Text2.Text) = Trim(Text4.Text) Then
Form6.Show
MDIForm1.Print Command1.Tag
MDIForm1.Tag = Text1.Text
Else
X = X - 1
A1.Recordset.MoveNext
End If
End If
Next X
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Load()
If A1.Recordset.EOF = True And A1.Recordset.BOF = True Then
MsgBox "您是第一次使用本程序,请设置超级用户!", 32, "设置:"
Form6.Show
Unload Me
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -