Does e.CloseReason work for you?
- From: "Academia" <academiaNOSPAM@xxxxxxxxxx>
- Date: Sat, 8 Dec 2007 18:45:48 -0500
Protected Overrides Sub OnFormClosing(ByVal e As
System.Windows.Forms.FormClosingEventArgs)
MyBase.OnFormClosing(e)
Console.WriteLine(e.CloseReason.ToString )
always writes
UserClosing
No matter if I'm closing the form, exiting the app, shutting down windows or
using the Task Manager to shut down the app.
Does e.CloseReason work for you?
Thanks
.
- Follow-Ups:
- Re: Does e.CloseReason work for you?
- From: Academia
- Re: Does e.CloseReason work for you?
- Prev by Date: Re: IHTMLDocument Intellisense Blank
- Next by Date: Re: StreamWriter Problem
- Previous by thread: Re: Toggle Button
- Next by thread: Re: Does e.CloseReason work for you?
- Index(es):