This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
TrayIcon Members
Public:
Constructor
Properties
ContextMenu |
Gets or sets context menu for the tray icon. |
Icon |
Gets or sets the current icon. |
Site (inherited from Component) |
Gets or sets the site of the Component. |
Text |
Gets or sets the ToolTip text displayed when the mouse hovers over a system tray icon. |
Visible |
Gets or sets a value indicating whether the icon is visible in the Windows System Tray. |
Methods
Dispose |
Disposes of the resources (other than memory) used by the TrayIcon. |
Equals (inherited from Object) |
Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality). |
GetContainer (inherited from Component) |
Returns the IContainer that contains the Component. |
GetDesignMode (inherited from Component) |
Gets a value indicating whether the Component is currently in design mode. |
GetHashCode (inherited from Object) |
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetServiceObject (inherited from Component) |
Returns an object representing a service provided by the Component. |
GetType (inherited from Object) |
Gets the Type of the Object. |
ToString (inherited from Component) |
Returns a String containing the name of the Component, if any. This method should not be overridden. For internal use only. |
Events
MouseDown |
Occurs when the user presses a mouse button while the pointer is over a control. |
MouseMove |
Occurs whenever the user moves the mouse pointer over a control. |
MouseUp |
Occurs when the user releases a mouse button while the pointer is over a control. |
Protected:
Methods
Finalize |
Cleans up the resources used during garbage collection, which occurs when Dispose is called. This class cannot be inherited. |
MemberwiseClone (inherited from Object) |
Creates a shallow copy of the current Object. |
Event Hookup:
Methods
AddOnMouseDown |
Adds an event handler for the System.WinForms.TrayIcon.MouseDown event. |
AddOnMouseMove |
Adds an event handler for the System.WinForms.TrayIcon.MouseMove event. |
AddOnMouseUp |
Adds an event handler for the System.WinForms.TrayIcon.MouseUp event. |
RemoveOnMouseDown |
Removes the given handler for the "OnMouseDown" event. If there are duplicate entries, ALL are removed. |
RemoveOnMouseMove |
Removes the given handler for the "OnMouseMove" event. If there are duplicate entries, ALL are removed. |
RemoveOnMouseUp |
Removes the given handler for the "OnMouseUp" event. If there are duplicate entries, ALL are removed. |
See Also
TrayIcon Class | System.WinForms Namespace