?? frmdenlu.frm
字號:
VERSION 5.00
Begin VB.Form Frmdenlu
Caption = "登錄"
ClientHeight = 2670
ClientLeft = 3360
ClientTop = 2880
ClientWidth = 4725
Icon = "Frmdenlu.frx":0000
LinkTopic = "Form2"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2670
ScaleWidth = 4725
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command2
Height = 300
Left = 3480
Picture = "Frmdenlu.frx":0442
Style = 1 'Graphical
TabIndex = 6
Top = 2280
Width = 1095
End
Begin VB.CommandButton Command1
Height = 300
Left = 2160
Picture = "Frmdenlu.frx":099D
Style = 1 'Graphical
TabIndex = 5
Top = 2280
Width = 1095
End
Begin VB.Frame Frame1
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
ForeColor = &H80000008&
Height = 1575
Left = 120
TabIndex = 0
Top = 600
Width = 4455
Begin VB.TextBox Text2
Appearance = 0 'Flat
BackColor = &H80000018&
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 350
IMEMode = 3 'DISABLE
Left = 1320
PasswordChar = "*"
TabIndex = 4
Top = 960
Width = 2055
End
Begin VB.TextBox Text1
Appearance = 0 'Flat
BackColor = &H80000018&
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 350
Left = 1320
TabIndex = 2
Top = 360
Width = 2055
End
Begin VB.Image Image3
Height = 480
Left = 3600
Picture = "Frmdenlu.frx":0F74
Top = 840
Width = 480
End
Begin VB.Image Image2
Height = 480
Left = 3600
Picture = "Frmdenlu.frx":13B6
Top = 360
Width = 480
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
ForeColor = &H00C00000&
Height = 255
Left = 240
TabIndex = 3
Top = 960
Width = 975
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
ForeColor = &H00C00000&
Height = 255
Left = 240
TabIndex = 1
Top = 360
Width = 975
End
End
Begin VB.Image Image4
Height = 480
Left = 480
Picture = "Frmdenlu.frx":17F8
Top = 2160
Width = 480
End
Begin VB.Image Image1
Height = 480
Left = 360
Picture = "Frmdenlu.frx":1C3A
Top = 120
Width = 480
End
Begin VB.Label Label3
Caption = "某某學校"
BeginProperty Font
Name = "楷體_GB2312"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 375
Left = 1680
TabIndex = 7
Top = 120
Width = 1575
End
End
Attribute VB_Name = "Frmdenlu"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim mrc As ADODB.Recordset
txtsql = "select username from use where username='" & Trim(Text1.Text) & "'"
Set mrc = ExecuteSQL(txtsql)
If mrc.EOF = True Then
MsgBox " 用戶名錯誤!", vbExclamation + vbOKOnly, "警告"
Text1.SetFocus
Text1.SelStart = 0
Text1.SelLength = Len(Text1.Text)
Exit Sub
End If
username = mrc.Fields(0)
txtsql = "select username from use where password='" & Trim(Text2.Text) & "'"
Set mrc = ExecuteSQL(txtsql)
If mrc.EOF = True Then
MsgBox " 密碼錯誤!", vbExclamation + vbOKOnly, "警告"
Text2.SetFocus
Text2.SelStart = 0
Text2.SelLength = Len(Text2.Text)
Exit Sub
End If
MDIForm1.Show
Unload Me
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Text2.SetFocus
End If
End Sub
Private Sub Text2_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Command1.SetFocus
End If
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -