[Mono-bugs] [Bug 78613][Nor] New - Form.DialogResult saving wrong value when using ShowDialog ()

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Jun 22 21:19:17 EDT 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by peter at novonyx.com.

http://bugzilla.ximian.com/show_bug.cgi?id=78613

--- shadow/78613	2006-06-22 21:19:17.000000000 -0400
+++ shadow/78613.tmp.19973	2006-06-22 21:19:17.000000000 -0400
@@ -0,0 +1,57 @@
+Bug#: 78613
+Product: Mono: Class Libraries
+Version: unspecified
+OS: unknown
+OS Details: 
+Status: RESOLVED   
+Resolution: FIXED
+Severity: Unknown
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com                            
+ReportedBy: calberto.cortez at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Form.DialogResult saving wrong value when using ShowDialog ()
+
+Description of Problem:
+
+Running an empty form using Form.ShowDialog (), and closing it with the
+Close button in the title bar, returns DialogResult.Cancel -which is fine-,
+but doesn't save this correctly to Form.DialogResult -which will have
+DialogResult.None-. Form.DialogResult value should be DialogResult.Cancel, too.
+
+
+Steps to reproduce the problem:
+1. Compile the sample
+2. Run it
+3. Close the form using the close button in the title bar.
+
+Actual Results:
+An error message is printed to the console, indicating that the value
+returned by Form.ShowDialog and the value of Form.DialogResult are different.
+
+Expected Results:
+In .Net 1.1/2.0, no error message is printed to the console. The related
+values are consistent.
+
+How often does this happen? 
+Always.
+
+Additional Information:
+mono/libgdiplus from svn.
+
+------- Additional Comments From calberto.cortez at gmail.com  2006-06-08 14:54 -------
+Created an attachment (id=17160)
+Sample
+
+
+------- Additional Comments From calberto.cortez at gmail.com  2006-06-09 21:45 -------
+Created an attachment (id=17162)
+Patch
+
+
+------- Additional Comments From peter at novonyx.com  2006-06-22 21:19 -------
+Fixed in svn r61975


More information about the mono-bugs mailing list