NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

TrayIcon.ContextMenu

Gets or sets context menu for the tray icon.

[Visual Basic]
Public Property ContextMenu As ContextMenu
[C#]
public ContextMenu ContextMenu {get; set;}
[C++]
public: __property ContextMenu* get_ContextMenu();
public: __property void set_ContextMenu(ContextMenu*);
[JScript]
public function get ContextMenu() : ContextMenu;
public function set ContextMenu(ContextMenu);

Property Value

The context menu for the tray icon. The default value is a null reference (in Visual Basic Nothing).

Remarks

The menu is shown when a right-mouse click is performed on an icon in the system tray. Context menus also are known as pop-up menus.

See Also

TrayIcon Class | TrayIcon Members | System.WinForms Namespace | ContextMenu