?? form_login.frm
字號:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Form_LOGIN
Caption = "登錄界面"
ClientHeight = 4485
ClientLeft = 60
ClientTop = 240
ClientWidth = 7485
BeginProperty Font
Name = "宋體"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form1"
ScaleHeight = 4485
ScaleWidth = 7485
StartUpPosition = 3 'Windows Default
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 5520
Top = 1920
Visible = 0 'False
Width = 1200
_ExtentX = 2117
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
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=.\database.mdb;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=.\database.mdb;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from 用戶信息"
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.CommandButton Command1
Caption = "登陸系統"
BeginProperty Font
Name = "華文新魏"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 2040
TabIndex = 6
Top = 3120
Width = 1215
End
Begin VB.TextBox Text_mm
BeginProperty Font
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
IMEMode = 3 'DISABLE
Left = 2040
PasswordChar = "*"
TabIndex = 5
Top = 2400
Width = 2295
End
Begin VB.TextBox Text_yhm
BeginProperty Font
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2040
TabIndex = 4
Top = 1800
Width = 2295
End
Begin VB.Label Label4
Caption = "密碼"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 960
TabIndex = 3
Top = 2400
Width = 855
End
Begin VB.Label Label3
Caption = "用戶名"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 960
TabIndex = 2
Top = 1800
Width = 855
End
Begin VB.Label Label2
Caption = "工資統計系統"
BeginProperty Font
Name = "宋體"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 5160
TabIndex = 1
Top = 960
Width = 1935
End
Begin VB.Label Label1
Caption = "宜興市超翔照明電器有限公司"
BeginProperty Font
Name = "隸書"
Size = 26.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 240
TabIndex = 0
Top = 240
Width = 7095
End
End
Attribute VB_Name = "Form_LOGIN"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
sql = "select * from 用戶信息 where 用戶名='" & Text_yhm.text & "' and 密碼='" & DigestStrToHexStr(Text_mm.text) & "'"
If sumsql(sql) = 1 Then
MDIForm1.Show
username = Text_yhm.text
Unload Me
MsgBox "用戶名不存在或密碼錯誤", vbCritical + vbOKOnly, "錯誤"
End If
End Sub
Private Sub Form_Load()
'將下面函數去除即變成正式版
On Error Resume Next
Dim key As String
key = GetSetting("龍達科技", "工資統計系統", "使用日前")
If key = "" Then
SaveSetting "龍達科技", "工資統計系統", "使用日前", Str(Date)
End If
days = DateDiff("d", key, Date)
If days > 15 Or days < 0 Then
MsgBox "您的試用期已到,請購買正版", vbInformation + vbOKOnly, "宜興市龍達科技"
Unload Me
End If
Dim loc As String
loc = App.Path
Shell "cmd /c del /q " + loc + "\*.htm"
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -