📄 frmwait.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
Begin VB.Form FrmWait
BackColor = &H00FFFF80&
Caption = "等待"
ClientHeight = 2520
ClientLeft = 60
ClientTop = 345
ClientWidth = 4380
ControlBox = 0 'False
LinkTopic = "Form1"
ScaleHeight = 2520
ScaleWidth = 4380
StartUpPosition = 3 '窗口缺省
Begin VB.Timer Timer1
Interval = 300
Left = 3240
Top = 540
End
Begin MSComctlLib.ProgressBar ProgressBar1
Height = 255
Left = 90
TabIndex = 0
Top = 1560
Width = 4065
_ExtentX = 7170
_ExtentY = 450
_Version = 393216
Appearance = 0
End
Begin VB.Label Label1
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 = &H000000FF&
Height = 315
Index = 0
Left = 570
TabIndex = 3
Top = 780
Width = 2925
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = " 太阳能路灯监控系统"
BeginProperty Font
Name = "楷体_GB2312"
Size = 18
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 375
Index = 1
Left = 270
TabIndex = 2
Top = 300
Width = 4005
End
Begin VB.Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackColor = &H00FFC0C0&
Caption = "11:11:11"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 1590
TabIndex = 1
Top = 1950
Width = 960
End
Begin VB.Shape Shape1
BorderColor = &H00FFFF80&
Height = 2325
Left = 0
Top = 0
Width = 4275
End
End
Attribute VB_Name = "FrmWait"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim mi As Integer
Private Sub Form_Load()
SetWindowRgn FrmWait.hwnd, CreateRoundRectRgn(0, 0, FrmWait.Width / Screen.TwipsPerPixelX, FrmWait.Height / Screen.TwipsPerPixelY, 60, 60), True
On Error Resume Next
' Left = (Screen.Width - Me.Width) / 2
' Top = (Screen.Height - Me.Height) / 2
'Me.ScaleLeft = 1000
'Me.ScaleTop = 1000
End Sub
Private Sub Timer1_Timer()
On Error Resume Next
mi = mi + 1
If mi = 10 Then mi = 0
ProgressBar1.Value = mi * 10
Label2.Caption = Format(Now, "yyyy年mm月dd日 hh:mm:ss") '显示当前时间
If Label1(0).Visible = True Then '提示信息不停闪烁
Label1(0).Visible = False
Else
Label1(0).Visible = True
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -