[Mono-bugs] [Bug 631810] New: Modal Form closing event raised by button cannot be canceled

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Aug 17 06:08:43 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=631810

https://bugzilla.novell.com/show_bug.cgi?id=631810#c0


           Summary: Modal Form closing event raised by button cannot be
                    canceled
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.6.x
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: matteo.tesser at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Description of Problem:

When a modal form is closed by clicking a button having the propery
(DialogResult=DialogResult.OK),  the Form OnClosing event is fired correctly
but the Cancel property of the FormClosingEventArgs parameter is ignored, that
means the closing event cannot be canceled.


Steps to reproduce the problem:
1. run the sample, a form will appear.  
2. click the "close" button, a dialog asking to confirm the closing. 
3. cancel the closing, by clicking "no"


Actual Results:

The form will be closed even if the user decided to cancel the closing event.

Expected Results:

The form closing should be canceled.


How often does this happen? 

Always.

Additional Information:

It seemed that in this case the OnClosing event is fired when the form is
already closed, while,

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list