practice3_3.frm
来自「深圳大学的vb上机与教学的课件」· FRM 代码 · 共 150 行
FRM
150 行
VERSION 5.00
Begin VB.Form Form1
Caption = "钟表"
ClientHeight = 2010
ClientLeft = 60
ClientTop = 345
ClientWidth = 4470
BeginProperty Font
Name = "隶书"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form1"
ScaleHeight = 2010
ScaleWidth = 4470
StartUpPosition = 3 '窗口缺省
Begin VB.Label lblTime
Alignment = 2 'Center
BorderStyle = 1 'Fixed Single
Height = 375
Left = 600
TabIndex = 10
Top = 1440
Width = 3615
End
Begin VB.Label Label10
Caption = "时间"
Height = 645
Left = 240
TabIndex = 9
Top = 1320
Width = 360
End
Begin VB.Label Label9
AutoSize = -1 'True
Caption = "星期"
BeginProperty Font
Name = "隶书"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 1440
TabIndex = 8
Top = 840
Width = 660
End
Begin VB.Label lblWeek
Alignment = 2 'Center
BorderStyle = 1 'Fixed Single
BeginProperty Font
Name = "隶书"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2160
TabIndex = 7
Top = 840
Width = 975
End
Begin VB.Label Label7
AutoSize = -1 'True
Caption = "日"
Height = 285
Left = 3840
TabIndex = 6
Top = 240
Width = 300
End
Begin VB.Label lblDay
Alignment = 2 'Center
BorderStyle = 1 'Fixed Single
Height = 375
Left = 3240
TabIndex = 5
Top = 240
Width = 495
End
Begin VB.Label Label5
AutoSize = -1 'True
Caption = "月"
Height = 285
Left = 2880
TabIndex = 4
Top = 240
Width = 300
End
Begin VB.Label lblMonth
Alignment = 2 'Center
BorderStyle = 1 'Fixed Single
Height = 375
Left = 2160
TabIndex = 3
Top = 240
Width = 615
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "年"
Height = 285
Left = 1800
TabIndex = 2
Top = 240
Width = 300
End
Begin VB.Label lblYear
Alignment = 2 'Center
BorderStyle = 1 'Fixed Single
Height = 375
Left = 600
TabIndex = 1
Top = 240
Width = 1095
End
Begin VB.Label Label1
Caption = "公历"
Height = 645
Left = 240
TabIndex = 0
Top = 120
Width = 360
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()
lblYear.Caption = Year(Date)
lblMonth.Caption = Month(Date)
lblDay.Caption = Day(Date)
lblWeek.Caption = Weekday(Date) - 1
lblTime.Caption = Time
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?