(WPF C#) I App System-Tray minimieren wollen, aber ohne Symbol in der Taskleiste: So setzen i:Ärger mit App System-Tray minimieren
this.ShowInTaskbar = false;
Dann unerwünschtes Symbol verschwunden, aber neue Bar erscheint auf dem Desktop!
Hat bitte jemand Ahnung, wie dieses Problem nach Minimierung zu lösen?
Hier ist mein wichtiger Teil des Codes:
private void stateChangedEvent(object sender, EventArgs e)
{
if (WindowState.Minimized == WindowState)
{
this.ShowInTaskbar = false;
var iconHandle = Properties.Resources.iconPaw.GetHicon();
notifyIcon.Icon = System.Drawing.Icon.FromHandle(iconHandle);
notifyIcon.Click += new EventHandler(this.WindowsStateToNormal);
notifyIcon.Visible = true;
notifyIcon.BalloonTipText = "Radek app";
notifyIcon.BalloonTipTitle = "Welcome Message";
notifyIcon.BalloonTipIcon = System.Windows.Forms.ToolTipIcon.Info;
notifyIcon.ShowBalloonTip(3000);
}
}
private void WindowsStateToNormal(object Sender, EventArgs e)
{
this.WindowState = WindowState.Normal;
notifyIcon.Visible = false;
}
Bitte aktualisieren Sie den eigentlichen Text Ihrer Nachricht, nicht Text in Bildern. – Soviut
Ich werde es updaten, sorry – user7968180