Click Event

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

Syntax

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

The Click 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 Click event with a confirmation message)

Private Sub csSysTray1_Click ()
MsgBox "SysTray icon was clicked (left mouse button)!"
End Sub