//in form definition
NotifyIcon tray = new NotifyIcon();
//in constructor (after InitializeComponent [sic])
tray.Icon = new Icon("myiconfileinexecdir.ico");
//when you want to show it
tray.Visible = true;
tray.Text = "This text appears as a tooltip when mouse hovers over icon";
//hide it again
tray.Visible = false;
//to accept clicks on the icon
//
tray.Click += new System.EventHandler(tray_Click);
...
void tray_Click(object sender, System.EventArgs e) {
...
}
//to make the icon disappear immediately the form closes, set tray.Icon to null on closure
Anti-nuisance lawsuit warning: The purpose of these notes is to remind me, Zoegond, of stuff or to help me work stuff out. They may contain mistakes.
Quick
- ($a, $b....) = unpack("A2A7...", $packed)
- push( array, list )