TrayTip Property
This property contains the tooltip shown by the system tray icon when a user holds the mouse cursor over it.
Syntax
csSysTray[(index)].TrayTip [= string]
The TrayTip property syntax has these parts:
Part | Description |
csSysTray | The SysTray control you are working with, or a control array of SysTray controls. |
string | A string associated with the SysTray control that appears in a small rectangle above the system tray icon when the user's cursor hovers over it at run time for about one second. |
Examples
Example 1 (setting the system tray tooltip (traytip) at run time)
csSysTray1.TrayTip="This is a system tray tooltip!"
Example 2 (retrieving the system tray tooltip (traytip) at run time)
sTemp = csSysTray1.TrayTip
Remarks
At design time you can set the TrayTip property string in the control's properties dialog box.
At run time, you may change the system tray tooltip (traytip) on the fly, at any time.