Hi,
Thanks a lot both of you.
Get it working correctly now.
However, I stil have a tiny little problem.
My apps will get iconized on window startup. If I shutdown windows now,
WM_QUERYENDSESSION doesn't get captured.
But, when I restore the apps to normal size and iconized it back, only then
WM_QUERYENDSESSION will get captured.
In short, the apps needs to get focus once, before it can capture
WM_QUERYENDSESSION.
Any ideas?
Thanks,
mfwoo
"Ken Tucker [MVP]" wrote:
Hi,
It is the closing event now.
Ken
------------------------
"Woo Mun Foong" <mf***@yahoo.com> wrote in message
news:08**********************************@microsof t.com... Pardon my ignorance.
But I'd go through the events from the VS2003 IDE and I can't get
Form_QueryUnload events.
Thank You,
mfwoo
"sh**********@yahoo.com" wrote:
Form_QueryUnload event of the form has UnloadMode param which has
different states....and you can detect the windows shutting mode also.
Shivprasad Koirala
C# , VB.NET , SQL SERVER , ASP.NET Interview Questions
http://www.geocities.com/dotnetinterviews/