[Mono-bugs] [Bug 79579][Min] New - TextBox does not raise Click and DoubleClick events

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Oct 4 08:46:39 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 rolfkvinge at ya.com.

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

--- shadow/79579	2006-10-04 08:46:39.000000000 -0400
+++ shadow/79579.tmp.6610	2006-10-04 08:46:39.000000000 -0400
@@ -0,0 +1,68 @@
+Bug#: 79579
+Product: Mono: Class Libraries
+Version: 1.1
+OS: SUSE 9.2
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: rolfkvinge at ya.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: TextBox does not raise Click and DoubleClick events
+
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem:
+
+Steps to reproduce the problem:
+1. Run the following code (Linux)
+2. Click or doubleclick anywhere in the textbox.
+
+Actual Results:
+No events are thrown.
+
+Expected Results:
+Click and DoubleClick events thrown.
+
+using System;
+using System.Windows.Forms;
+
+public class Form1 : System.Windows.Forms.Form
+        {
+                static void Main()
+                {
+                        Application.Run(new Form1());
+                }
+
+                public Form1()
+                {
+                        TextBox T = new TextBox();
+                        T.Width = 200;
+                        T.Text = "Click/Double here";
+
+                        Controls.Add(T);
+
+                        T.DoubleClick += new EventHandler(DblClick);
+                        T.Click += new EventHandler(Clicker);
+                }
+
+                internal void DblClick(Object sender, EventArgs e)
+                {
+                        Console.WriteLine(DateTime.Now.ToString() + " 
+DoubleClick");
+                }
+                internal void Clicker(Object sender, EventArgs e)
+                {
+                        Console.WriteLine(DateTime.Now.ToString() + " 
+Click");
+                }
+}
+
+How often does this happen? 
+Always


More information about the mono-bugs mailing list