MiddleClick Event

This event occurs when the user clicks on the system tray icon with the middle mouse button.

Syntax

Private Sub csSysTray_MiddleClick()
Private Sub csSysTray_MiddleClick([index As Integer])

The MiddleClick event syntax has these parts:

Part Description
csSysTray The SysTray control you are working with.
index An integer that uniquely identifies a control if it's in a control array.

Examples

Example 1 (Responding to a MiddleClick event with a confirmation message)

Private Sub csSysTray1_MiddleClick ()
MsgBox "SysTray icon was clicked (middle mouse button)!"
End Sub