?? 自測考試管理系統.frm
字號:
VERSION 5.00
Begin VB.Form Form1
BorderStyle = 0 'None
Caption = "Form1"
ClientHeight = 6570
ClientLeft = 0
ClientTop = 0
ClientWidth = 9465
KeyPreview = -1 'True
LinkTopic = "Form1"
Picture = "自測考試管理系統.frx":0000
ScaleHeight = 438
ScaleMode = 0 'User
ScaleWidth = 631
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
Begin VB.Timer Timer1
Left = 840
Top = 3720
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "北華航天財會金融系 2005.5.16"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00008000&
Height = 375
Index = 5
Left = 1920
TabIndex = 5
Top = 5040
Width = 4935
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "正在連接數據庫服務器...."
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 375
Index = 4
Left = 3120
TabIndex = 4
Top = 3600
Width = 3255
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "評閱試卷"
BeginProperty Font
Name = "宋體"
Size = 15
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 375
Index = 3
Left = 3120
TabIndex = 3
Top = 3000
Width = 1455
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "定制試卷"
BeginProperty Font
Name = "宋體"
Size = 15
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 375
Index = 2
Left = 3120
TabIndex = 2
Top = 2400
Width = 1455
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "試卷管理"
BeginProperty Font
Name = "宋體"
Size = 15
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 375
Index = 1
Left = 3120
TabIndex = 1
Top = 1800
Width = 1455
End
Begin VB.Label Label1
BackColor = &H80000003&
BackStyle = 0 'Transparent
Caption = "歡迎使用會計電算化自測考試系統"
BeginProperty Font
Name = "隸書"
Size = 24
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF00FF&
Height = 615
Index = 0
Left = 960
TabIndex = 0
Top = 600
Width = 8055
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Click()
Unload Me
systemlogon.Show: systemlogon.SetFocus
End Sub
Private Sub Form_GotFocus()
'On Error GoTo dealerror '測試是否可以連接的SQL Sever服務器
Me.Enabled = False '測試完成之前禁止窗體相應用戶操作
'創建于數據庫的連接
Dim objcn As New Connection '定義并實例化連接對象
With objcn '建立連接
.Provider = "sqloledb"
.ConnectionString = "use id=sa;pwd=123;data source=(local);" & _
"initial catalog=自測考試"
.Open
.Close
End With
Set objcn = Nothing
Label1(4) = "已連接到數據庫服務器"
Timer1.Interval = 3000
Me.Enabled = True
Exit Sub
dealerror:
MsgBox "不能正確連接到數據庫,請與系統管理員聯系!", vbCritical
Unload Me
End Sub
Private Sub Form_KeyPress(KeyAscii As Integer)
Unload Me
systemlogon.Show: systemlogon.SetFocus
End Sub
Private Sub Label1_Click(Index As Integer)
Unload Me
systemlogon.Show: systemlogon.SetFocus
End Sub
Private Sub Timer1_Timer()
Unload Me
systemlogon.Show: systemlogon.SetFocus
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -