PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework Forms CloseReason equals UserClosing when form is programatically closed

Reply

CloseReason equals UserClosing when form is programatically closed

 
Thread Tools Rate Thread
Old 13-12-2005, 09:39 AM   #1
=?Utf-8?B?T2xpdmllciBGZXJteQ==?=
Guest
 
Posts: n/a
Default CloseReason equals UserClosing when form is programatically closed


In FormClosedEventArgs of OnFormClosed() method, when the form is closed
using Form.Close() method, the e.CloseReason equals UserClosing. I would have
been happy to differentiate when user has clicked the form "Close button" or
when the form is closed progamatically by myself.
  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off