NotifyIcon

NotifyIcon marshal by reference, disposable

System. Windows .Forms (system. windows .forms.dll) sealed class

This class creates an icon in the system tray. You can specify the tooltip Text (which must be fewer than 64 characters ), the actual Icon itself, and a ContextMenu . You can also show and hide the icon with the Visible property.

Various events are provided to which you can bind to handle Click , DoubleClick , MouseDown , MouseUp , and MouseMove events while the control is visible.

Note that there is no support for the Windows 2000 and above balloon pop-ups, just the standard tooltips.

 public sealed class  NotifyIcon  : System.ComponentModel.Component {  // Public Constructors  public  NotifyIcon  ();    public  NotifyIcon  (System.ComponentModel.IContainer  container  );  // Public Instance Properties  public ContextMenu  ContextMenu  {set; get; }    public Icon  Icon  {set; get; }    public string  Text  {set; get; }    public bool  Visible  {set; get; }  // Protected Instance Methods  protected override void  Dispose  (bool  disposing  );  // overrides System.ComponentModel.Component   // Events  public event EventHandler  Click  ;    public event EventHandler  DoubleClick  ;    public event MouseEventHandler  MouseDown  ;    public event MouseEventHandler  MouseMove  ;    public event MouseEventHandler  MouseUp  ; } 

Hierarchy

System.Object System.MarshalByRefObject System.ComponentModel.Component(System.ComponentModel.IComponen, System.IDisposable) NotifyIcon



. Net Windows Forms in a Nutshell
.NET Windows Forms in a Nutshell
ISBN: 0596003382
EAN: 2147483647
Year: 2002
Pages: 794

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net