[Mono-bugs] [Bug 80387][Maj] New - Showing a Form in a ListView.DoubleClick handler gets the double-click state 'stuck'
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Dec 28 14:40:23 EST 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 dan.maser at inin.com.
http://bugzilla.ximian.com/show_bug.cgi?id=80387
--- shadow/80387 2006-12-28 14:40:23.000000000 -0500
+++ shadow/80387.tmp.4005 2006-12-28 14:40:23.000000000 -0500
@@ -0,0 +1,58 @@
+Bug#: 80387
+Product: Mono: Class Libraries
+Version: 1.2
+OS: RHEL 2.1
+OS Details: RHEL kernel 2.6.9-42 on i686
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com
+ReportedBy: Dan.Maser at inin.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Showing a Form in a ListView.DoubleClick handler gets the double-click state 'stuck'
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem:
+ I'm using the mono tarball version 1.2.20061228. If you have a
+ListView control and a DoubleClick handler and show another form in
+response to the DoubleClick, it confuses some state variable or
+something. After you dismiss the DoubleClick form, all subsequent single
+clicks on the ListView are triggering the DoubleClick handler again. If
+you use a non-ListView control or don't show another form in the handler
+it doesn't seem to cause a problem.
+
+Steps to reproduce the problem:
+1. Create a simple WinForms app and put a ListView control on it. Create
+a DoubleClick handler on the ListView.
+2. In the DoubleClick handler, add a System.Console.WriteLine so you can
+tell when it is double clicked. Verify that there is no problems.
+3. Add this to the ListView.DoubleClick handler:
+ Form f = new Form();
+ f.ShowDialog();
+
+Actual Results:
+ The first time you double click the ListView, a blank form is shown.
+Dismiss the form with the close box. Now, single-clicking on the
+ListView will make the DoubleClick handler invoke. It happens every time
+you single click from then on.
+
+Expected Results:
+ Dismissing the blank form should take focus back to the ListView and
+single clicks should not invoke the DoubleClick handler.
+
+How often does this happen?
+ It happens every time a Form is shown from the ListView.DoubleClick
+handler. It doesn't seem to happen with other controls or in other
+handlers.
+
+Additional Information:
+ I compiled the mono-1.2.20061228 tarball myself on this system using
+the
+command "gmcs.exe /reference:System.Windows.Forms.dll /reference:System.Dr
+awing.dll test1.cs" and execute it with the command "mono test1.exe"
More information about the mono-bugs
mailing list