Form... QueryUnload, UnLoadMode .NET equiv? [RESOLVED]
I have a program in which in most cases I want it stay open - thus it intercepts the close command and minimizes instead.
In VB6 the QueryUnload events UnLoadMode would allow me to distinguish between an application shutdown and Windows being shutdown.
I am using the Closing event in VB.NET as QueryUnload no longer exists to intercept app close commands but this no longer has a UnLoadMode so how to I work out it it’s Task Manger, Windows and so on closing and not my application?
Currently my program will not allow Windows to shutdown!!!
Any help appreciated, Thanks.