2012-03-20 193 views

回答

2

是的確實有,實際發生的是當你打開你的應用程序有創建圖標,但是當你關閉它時,你的應用程序不會刪除圖標時,他關閉所以...
你只需要打開TaskbarNotification代碼,使Dispose方法公開,並調用它在Application.Current.Exit事件

Application.Current.Exit += new ExitEventHandler(Current_Exit); 

void Current_Exit(object sender, ExitEventArgs e) 
{    
    notifyIcon.Dispose(); 
} 
+1

感謝,Dispose()方法已經是公衆然而處置(BOOL處置)不是。我應該讓公衆? – TheWolf 2012-03-20 18:37:01