📄 frmtimeout.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "Mscomctl.ocx"
Begin VB.Form frmTimeOut
Caption = "恢复数据库"
ClientHeight = 795
ClientLeft = 60
ClientTop = 345
ClientWidth = 6630
ControlBox = 0 'False
LinkTopic = "Form1"
ScaleHeight = 795
ScaleWidth = 6630
StartUpPosition = 2 'CenterScreen
Begin VB.Timer Timer4Inter
Interval = 1000
Left = 6180
Top = 240
End
Begin MSComctlLib.ProgressBar ProgressBar4Time
Height = 315
Left = 60
TabIndex = 0
Top = 360
Width = 6495
_ExtentX = 11456
_ExtentY = 556
_Version = 393216
Appearance = 1
End
Begin VB.Label Label4Time
Caption = "数据库超时等待:"
Height = 195
Left = 120
TabIndex = 1
Top = 60
Width = 4395
End
End
Attribute VB_Name = "frmTimeOut"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private m_int4Interval As Integer
Private Sub Form_Load()
m_int4Interval = 0
Me.ProgressBar4Time.Max = 30
Me.ProgressBar4Time.Min = 0
Me.ProgressBar4Time.Value = 0
End Sub
Private Sub Timer4Inter_Timer()
If m_int4Interval >= 30 Then
Unload Me
Else
m_int4Interval = m_int4Interval + 1
Me.Label4Time.Caption = "数据库超时等待:" & m_int4Interval & " 秒"
DoEvents
Me.ProgressBar4Time.Value = m_int4Interval
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -