📄 显示时间.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "斜体"
ClientHeight = 7365
ClientLeft = 60
ClientTop = 450
ClientWidth = 8490
LinkTopic = "Form1"
ScaleHeight = 7365
ScaleWidth = 8490
Begin VB.ListBox List2
BeginProperty Font
Name = "宋体"
Size = 18
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 2940
ItemData = "显示时间.frx":0000
Left = 5280
List = "显示时间.frx":000D
TabIndex = 7
Top = 1920
Visible = 0 'False
Width = 2655
End
Begin VB.CommandButton Command1
Caption = "开始&X"
Height = 615
Left = 120
TabIndex = 6
Top = 6240
Width = 1575
End
Begin VB.ListBox list1
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 660
ItemData = "显示时间.frx":0036
Left = 120
List = "显示时间.frx":0040
TabIndex = 5
Top = 5520
Width = 1575
End
Begin VB.Frame Frame1
Caption = "系统时间"
Height = 2175
Left = 1200
MousePointer = 2 'Cross
TabIndex = 4
Top = 1800
Visible = 0 'False
Width = 3495
Begin VB.Timer Timer1
Interval = 1000
Left = 240
Top = 1080
End
Begin VB.Label Label2
Alignment = 2 'Center
Height = 495
Left = 1080
TabIndex = 9
Top = 1080
Width = 1335
End
Begin VB.Label Label1
Alignment = 2 'Center
Caption = "现在时间"
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 600
TabIndex = 8
Top = 600
Width = 2295
End
End
Begin VB.CheckBox Check2
Caption = "斜体"
Height = 855
Left = 6120
TabIndex = 3
Top = 360
Width = 1575
End
Begin VB.CheckBox Check1
Caption = "粗体"
Height = 855
Left = 3960
TabIndex = 2
Top = 360
Width = 1575
End
Begin VB.OptionButton Option2
Caption = "隐藏"
Height = 855
Left = 2160
TabIndex = 1
Top = 360
Width = 1335
End
Begin VB.OptionButton Option1
Caption = "显示"
Height = 855
Left = 360
TabIndex = 0
Top = 360
Width = 1215
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Check1_Click()
If Check1.Value = 1 Then
List2.FontBold = True
End If
If Check1.Value = 0 Then
List2.FontBold = False
End If
End Sub
Private Sub Check2_Click()
If Check2.Value = 1 Then
List2.FontItalic = True
End If
If Check2.Value = 0 Then
List2.FontItalic = False
End If
End Sub
Private Sub Command1_Click()
List2.Visible = True
End Sub
Private Sub Form_Load()
Option2 = True
End Sub
Private Sub Frame1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Frame1.Visible = False
End Sub
Private Sub list1_Click()
If list1.Selected(0) = True Then Frame1.Visible = True
If list1.Selected(1) = True Then End
End Sub
Private Sub List2_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
List2.Visible = False
End Sub
Private Sub Option1_Click()
List2.Visible = True
End Sub
Private Sub Option2_Click()
List2.Visible = False
End Sub
Private Sub Timer1_Timer()
Label2.Caption = Time
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -