📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
BorderStyle = 0 'None
Caption = "Form1"
ClientHeight = 2700
ClientLeft = 0
ClientTop = 0
ClientWidth = 6345
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2700
ScaleWidth = 6345
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin VB.Timer Timer1
Left = 120
Top = 1200
End
Begin VB.Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "正在连接数据库服务器,请等待----"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 210
Left = 120
TabIndex = 1
Top = 2160
Width = 3360
End
Begin VB.Label Label8
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "收费软件"
BeginProperty Font
Name = "黑体"
Size = 21.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000080FF&
Height = 435
Left = 2400
TabIndex = 0
Top = 1020
Width = 1800
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
Form2.Show: Form2.SetFocus
End Sub
Private Sub Form_GotFocus()
On Error GoTo dealerror
Me.Enabled = False
Dim lianjie As New Connection
With lianjie
.ConnectionString = dblianjie
.Open
.Close
End With
Set lianjie = Nothing
Label2.Caption = " 已连接到数据库服务器。 "
Timer1.Interval = 500
Me.Enabled = True
Exit Sub
dealerror:
MsgBox "不能正确连接数据库服务器,请与系统管理员联系!", vbInformation, "提示"
Unload Me
End Sub
Private Sub Label2_Click()
Unload Me
Form2.Show: Form2.SetFocus
End Sub
Private Sub Label7_Click()
Unload Me
Form2.Show: Form2.SetFocus
End Sub
Private Sub Label8_Click()
Unload Me
Form2.Show: Form2.SetFocus
End Sub
Private Sub Text1_Change()
End Sub
Private Sub Timer1_Timer()
Unload Me
Form2.Show: Form2.SetFocus
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -