E
Eddie
Hi All,
In my application, every time the user "Close" the form, I cancel the close
and I put a NotifyIcon in the systray. Here is my code :
Private myForm_Closing(... ... ...) Handels MyBase.Closing
e.Cancel = True
End sub
My problem is : When the user try to shut Down his computer, My application
cannot close, so the computer does not shut down...
How May I know if the form is closing because the close click the X button
or because the computer is shutting down ?
Thx for your help...
Eddie
In my application, every time the user "Close" the form, I cancel the close
and I put a NotifyIcon in the systray. Here is my code :
Private myForm_Closing(... ... ...) Handels MyBase.Closing
e.Cancel = True
End sub
My problem is : When the user try to shut Down his computer, My application
cannot close, so the computer does not shut down...
How May I know if the form is closing because the close click the X button
or because the computer is shutting down ?
Thx for your help...
Eddie