![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Hi Dave, So you are using NotifyIcon to do this, right? I follow the this MSDN article and do test in both of Windows7 and Vista system. http://msdn.microsoft.com/en-us/library/system.windows.forms.notifyicon.aspx But I cannot reproduce the issue you mentioned. As long as I right click the icon tray and click the Exit menu item. The line this.Close() will make the form close and application quit. So I think the behavior you see must have something to do with other codes implementation in your project. To do a future investigation, when the application is still running as a process background, you can use Visual Studio to attach that process and observe its call stack. That may give some clues on what the process is doing. By the way, instead of calling this.Close() only, I suggest we also call Application.Exit afterward. Closing a form may not end all threads and process operation. But the Application.Exit should ends the application correctly. |
#4
| |||
| |||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |