form1.frm

来自「可以让您轻松设计WINDOWS托盘的控件源代码.」· FRM 代码 · 共 56 行

FRM
56
字号
VERSION 5.00
Object = "{60CC5D62-2D08-11D0-BDBE-00AA00575603}#1.0#0"; "SysTray.ocx"
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3195
   ClientLeft      =   165
   ClientTop       =   735
   ClientWidth     =   4680
   Icon            =   "Form1.frx":0000
   LinkTopic       =   "Form1"
   ScaleHeight     =   3195
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
   Begin SysTrayCtl.cSysTray cSysTray1 
      Left            =   1800
      Top             =   510
      _ExtentX        =   900
      _ExtentY        =   900
      InTray          =   -1  'True
      TrayIcon        =   "Form1.frx":030A
      TrayTip         =   "dfgsdfgsdfg"
   End
   Begin VB.Menu File 
      Caption         =   "File"
      Begin VB.Menu a 
         Caption         =   "a"
      End
      Begin VB.Menu b 
         Caption         =   "b"
      End
      Begin VB.Menu c 
         Caption         =   "c"
      End
      Begin VB.Menu d 
         Caption         =   "d"
      End
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub cSysTray1_MouseUp(Button As Integer, Id As Long)
If Button = 2 Then
PopupMenu Form1.File
End If
If Button = 1 Then MsgBox "Button1"
End Sub

Private Sub Form_Load()
cSysTray1.InTray = True
End Sub

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?