NotifyIcon NI=new NotifyIcon();
NI.Icon=<SomeIcon>;
NI.ContextMenu=<SomeContextMenu>;
NI.Text=<The Tool Tip Text To Be Displayed>;
NI.Visible=true;
Important:
After setting it, make sure to set NotifyIcon.Visible=true.
Also, can get an Icon via doing: NotifyIcon1.Icon=this.Icon;
(this=the Form)
Class NotifyIcon has several Events which the user can add EventHandlers, and respond to, such as Click, DoubleClick, MouseDown, MouseMove, & MouseUp.
A Common use to when the NotifyIcon is clicked,
is to open the Application's Main Form.
A Common use to when the NotifyIcon is rightclicked,
is to show a conetxt menu with options relevant for the application, or to what the notifyicon represents.
0 comments
Hide comments