📄 闪烁的窗体和标签.frm
字号:
VERSION 5.00
Begin VB.Form Form1
BorderStyle = 1 'Fixed Single
Caption = "Form1"
ClientHeight = 3195
ClientLeft = 45
ClientTop = 330
ClientWidth = 4680
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.Timer Timer1
Interval = 600
Left = 4080
Top = 2760
End
Begin VB.Label Label1
Caption = "闪烁的窗体和标签"
Height = 435
Left = 1080
TabIndex = 0
Top = 1080
Width = 2655
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Timer1_Timer()
If Label1.FontSize = 12 Then
Label1.ForeColor = &HFF0000
Label1.FontSize = 14
Label1.FontBold = False
Form1.Height = Form1.Height + 100
Form1.Width = Form1.Width + 100
Form1.Left = Form1.Left - 50
Form1.Top = Form1.Top - 50
Else
Label1.ForeColor = &H800000
Label1.FontSize = 12
Label1.FontBold = True
Form1.Height = Form1.Height - 100
Form1.Width = Form1.Width - 100
Form1.Left = Form1.Left + 50
Form1.Top = Form1.Top + 50
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -