Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
Das hab ich natürlich probiert. Geht leider nicht.
private void button1_Click_1(object sender, EventArgs e)
{
this.ShowInTaskbar = true;
this.notifyIcon1.Visible = false;
this.WindowState = FormWindowState.Normal;
}
private void Form1_Resize(object sender, System.EventArgs e)
{
if (this.WindowState == FormWindowState.Minimized)
{
this.penguinIcon1.ContextMenu = contextMenu1;
this.ShowInTaskbar = false;
this.WindowState = FormWindowState.Minimized;
this.notifyIcon1.Visible = true;
}
}
Das Ding nennt man SystrayEs soll dabei nicht in die Taskleiste, sondern in die Leiste unten rechts. (Wo Sound, Netzwerkverbindung etc. sind)
Dann solltest du den Code in dem von sheel geposteten Link mal komplett lesen dann sollte dir was auffallen."notifyIcon1" & "contextMenu1" sind rot unterwellt..
Ah ja, Meister meisti...Gehts eigentlich immernoch darum deine Kollegen, Mitschüler o.ä. mit irgendwelchen hirnlosen Programmen zu nerven?
#include
private void button1_Click_1(object sender, EventArgs e)
{
this.ShowInTaskbar = true;
this.notifyIcon1.Visible = false;
this.WindowState = FormWindowState.Normal;
}
private void Form1_Resize(object sender, System.EventArgs e)
{
if (this.WindowState == FormWindowState.Minimized)
{
this.notifyIcon1.ContextMenu = contextMenu1;
this.ShowInTaskbar = false;
this.WindowState = FormWindowState.Minimized;
this.notifyIcon1.Visible = true;
}
}
}
}