RightClick Event
This event occurs when the user clicks on the system tray icon with the right mouse button.
Syntax
Private Sub csSysTray_RightClick()
Private Sub csSysTray_RightClick([index As
Integer])
The RightClick 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 RightClick event with a confirmation message)
Private Sub csSysTray1_RightClick ()
MsgBox "SysTray icon was clicked (right mouse button)!"
End Sub