0
我要儘量減少我的WinForm應用程序到系統托盤時,最小化我的應用程序在任務欄,而不是在系統托盤中仍然開放,幾秒鐘 收盤後自動我已經添加NotifyIcon
控制寄存器到Resize
事件:儘量減少我的WinForm應用程序到系統托盤
private void MainWin_Resize(object sender, EventArgs e)
{
if (FormWindowState.Minimized == this.WindowState)
{
notifyIcon1.Visible = true;
notifyIcon1.ShowBalloonTip(500);
this.Hide();
}
else if (FormWindowState.Normal == this.WindowState)
{
notifyIcon1.Visible = false;
}
}
如何解決呢? (你讀過我寫的東西嗎?) – user3271698
你可以看到http://stackoverflow.com/questions/1297028/having-the-application-minimize-to-the-system-tray-when-button-is-clicked – Akrem
http://stackoverflow.com/questions/46918/whats-the-proper-way-to-minimize-to-tray-ac-sharp-winforms-app – Akrem