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: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to