1-) C# Athena - tray icon , notifyIcon1 , contextMenuStrip1 yapma
1- ) tray icon yapma notifyIcon1
toolbox->notifyIcon1-> ekle
toolbox -> contextMenuStrip1 -> ekle
notifyIcon1->properties -> contextMenuStrip1 -> seç
notifyIcon1->properties -> icon ekle .ico
notifyIcon1->properties -> visible-> true yap
notifyIcon1->properties -> Text = Ramazan HABER Oto Dosya/Dizin Kopyalama V0.0.1
2-) Form1_Shown olayına aşağıdakini yap(sağ altta popup olması için)
private void Form1_Shown(object sender, EventArgs e) {
notifyIcon1.ShowBalloonTip(1, "Ramazan HABER", "Oto Dosya/Dizin Kopyalama V0.0.1", ToolTipIcon.Info);
this.Hide();
}
3-) menusitrip1 aç olayına
private void Ac_Click(object sender, EventArgs e) {
this.Show();
this.Activate();
}
4-) menusitrip1 kapat olayına
this.Close();
5-) menusitrip1 gizle olayına
this.Hide();
6-) notificonun mouseclick olayına
private void notifyIcon1_MouseClick(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
if (this.Visible == true)
{
this.Hide();
}
else
{
this.Show();
this.Activate();
}
}
else if (e.Button == MouseButtons.Right)
{
}
else
{
}
}