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 Methods

The methods of the TrayIcon class are listed below. For a complete list of TrayIcon class members, see the TrayIcon Members topic.

Public:

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.

Protected:

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:

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