📄 frmtime.frm
字号:
VERSION 5.00
Begin VB.Form frmTime
Caption = "时间和日期"
ClientHeight = 2565
ClientLeft = 60
ClientTop = 345
ClientWidth = 4665
LinkTopic = "Form1"
MaxButton = 0 'False
ScaleHeight = 2565
ScaleWidth = 4665
StartUpPosition = 3 '窗口缺省
Begin VB.Timer Timer1
Left = 3720
Top = 2760
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
BeginProperty Font
Name = "Arial Narrow"
Size = 26.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000080FF&
Height = 615
Left = 120
TabIndex = 2
Top = 1800
Width = 4455
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
BeginProperty Font
Name = "Arial Narrow"
Size = 26.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 735
Left = 120
TabIndex = 1
Top = 120
Width = 4455
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
BeginProperty Font
Name = "Arial Narrow"
Size = 26.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF00FF&
Height = 735
Left = 120
TabIndex = 0
Top = 960
Width = 4455
End
End
Attribute VB_Name = "frmTime"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
frmTime.Picture = LoadPicture(App.Path + "\picture\中国娃娃1.bmp")
Timer1.Interval = 1000
Timer1.Enabled = True
End Sub
Private Sub Timer1_Timer()
Label1.Caption = Format(Date, "yyyy年mm月dd日")
Label2.Caption = "北京时间:" & Format(Time, "hh:mm:ss")
Label3.Caption = "今天是 " & Format(Date, "dddd")
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -