📄 frmsplash.frm
字号:
VERSION 5.00
Begin VB.Form frmSplash
BackColor = &H00FF8080&
BorderStyle = 0 'None
ClientHeight = 3330
ClientLeft = 210
ClientTop = 1365
ClientWidth = 4920
ClipControls = 0 'False
ControlBox = 0 'False
FillColor = &H8000000A&
Icon = "frmSplash.frx":0000
KeyPreview = -1 'True
LinkTopic = "Form2"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
Picture = "frmSplash.frx":000C
ScaleHeight = 3330
ScaleWidth = 4920
ShowInTaskbar = 0 'False
StartUpPosition = 2 'CenterScreen
Begin VB.Timer Timer1
Interval = 1000
Left = 4455
Top = 2880
End
Begin VB.Label Label1
BackColor = &H00FF8080&
BackStyle = 0 'Transparent
Caption = "GoldSeal 小秘书"
BeginProperty Font
Name = "宋体"
Size = 21.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C00000&
Height = 510
Left = 675
TabIndex = 0
Top = 1410
Width = 3570
End
End
Attribute VB_Name = "frmSplash"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'*****************************************************
'*
'* 欢迎表单
'*
'*****************************************************
Private Sub Timer1_Timer()
On Error GoTo ADOError
strQry = "select ID ,password from user"
Set rstCustomers = GetRecordSet(cnnConnection, strQry)
If rstCustomers.RecordCount = 0 Then
'无用户时,调用新用户注册窗体
frmUserReg.Show
Else
If rstCustomers.RecordCount = 1 And rstCustomers!Password = "" Then
'只一个注册用户是时,又无密码设置时,直接登录
blnLoginFlag = True
UserID = rstCustomers!ID
'调用主窗体
frmMain.Show
Else
'调用登录窗体
frmUserLogin.Show
End If
End If
Done:
Set rstCustomers = Nothing
Unload frmSplash
Exit Sub
ADOError:
DisplayADOErrors cnnConnection
GoTo Done
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -