📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
BackColor = &H00C0C0C0&
Caption = "鼠标右键弹出菜单"
ClientHeight = 1530
ClientLeft = 60
ClientTop = 345
ClientWidth = 2940
LinkTopic = "Form1"
ScaleHeight = 1530
ScaleWidth = 2940
StartUpPosition = 1 '所有者中心
Begin VB.CommandButton Command1
Caption = "退出"
Height = 390
Left = 630
TabIndex = 1
Top = 930
Width = 1500
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "请点击鼠标右键,弹出菜单"
ForeColor = &H000000C0&
Height = 165
Left = 315
TabIndex = 0
Top = 135
Width = 2280
End
Begin VB.Menu wj
Caption = "文件"
Visible = 0 'False
Begin VB.Menu open
Caption = "打开"
End
Begin VB.Menu line
Caption = "-"
End
Begin VB.Menu exit
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 Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
'利用PopupMenu方法
If Button And vbRightButton Then
PopupMenu wj '弹出菜单
End If
End Sub
Private Sub exit_Click()
End
End Sub
Private Sub Command1_Click()
End
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -