private void Form1_Load(object sender, EventArgs e)
{
NotifyIcon notify = new NotifyIcon();
notify.Icon = this.Icon;
notify.Visible = true;
// duration of show baloon as milisecond
int n = 3000;
// show baloon
notify.ShowBalloonTip(n, "Hi", "Salam Donya!", ToolTipIcon.Info);
//set an event handler
notify.MouseClick += new MouseEventHandler(notify_MouseClick);
}
void notify_MouseClick(object sender, MouseEventArgs e)
{
MessageBox.Show("man click shodam!");
}