📄 例[9-1].frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "例[9-1] 标签的显示和隐藏"
ClientHeight = 3195
ClientLeft = 165
ClientTop = 735
ClientWidth = 3675
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 3675
StartUpPosition = 3 '窗口缺省
Begin VB.Label Label1
BorderStyle = 1 'Fixed Single
Caption = "欢迎使用VB6.0"
Height = 495
Left = 1800
TabIndex = 0
Top = 2040
Width = 1575
End
Begin VB.Menu M1
Caption = "操作"
Begin VB.Menu Show
Caption = "显示"
End
Begin VB.Menu Hide
Caption = "隐藏"
End
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Hide_Click()
Label1.Visible = False
End Sub
Private Sub Show_Click()
Label1.Visible = True
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -