[Mono-bugs] [Bug 73985][Maj] New - Button Control Click Event firing on a form instance when child Form instance is displayed modally

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 22 Mar 2005 17:16:18 -0500 (EST)


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 richard.franco@cronus.biz.

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

--- shadow/73985	2005-03-22 17:16:18.000000000 -0500
+++ shadow/73985.tmp.14262	2005-03-22 17:16:18.000000000 -0500
@@ -0,0 +1,75 @@
+Bug#: 73985
+Product: Mono: Class Libraries
+Version: 1.1
+OS: SUSE 9.2
+OS Details: Suse 9.2 Professional, KDE 3.3.0
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: Windows.Forms
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: richard.franco@cronus.biz               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Button Control Click Event firing on a form instance when child Form instance is displayed modally
+
+Description of Problem:
+
+When a form instance is displayed modally from another form instance,
+button click events are still fired in Parent form on button click.
+
+
+Steps to reproduce the problem:
+
+1. Compile attached cs source file using:
+
+mcs winformstest.cs -r:System.Windows.Forms.dll -r:System.Drawing.dll
+-target:winexe -out:winformstest.exe
+
+
+2. Execute the output: 
+
+mono winformstest.exe
+
+
+3. Click the 'Open Another Instace' button.
+
+
+4. Move the modal form to one side so you can see the parent form.
+
+
+5. Click the  'Open Another Instace' button again (on the parent form).
+
+
+Actual Results:
+
+Button Click event on parent form is fired while another child form
+instance is displayed modally.
+
+
+Expected Results:
+
+Button Click event on parent form should only fire after any child form
+instances displayed modally are closed (this is the default behaviour
+exhibited in MS.Net v1.1 under win32).
+
+
+How often does this happen? 
+
+All the time.
+
+
+Additional Information:
+
+Using mono 1.1.4 packages downloaded from:
+http://www.go-mono.com/archive/1.1.4/suse-92-i586/
+
+Also using latest System.Windows.Forms.dll downloaded from:
+http://mwf.mono-project.com/System.Windows.Forms.dll
+(as at 20:00 GMT on 22-Mar-2005).
+
+Note: Also happens with System.Windows.Forms.dll version included in mono
+1.1.4 packages.