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 [EMAIL PROTECTED]

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

--- shadow/78800        2006-07-09 03:36:56.000000000 -0400
+++ shadow/78800.tmp.18114      2006-07-09 03:36:56.000000000 -0400
@@ -0,0 +1,66 @@
+Bug#: 78800
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: Kernel: 2.6.16.13-4-smp; Mono: 1.1.16
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: Windows.Forms
+AssignedTo: [EMAIL PROTECTED]                            
+ReportedBy: [EMAIL PROTECTED]               
+QAContact: [EMAIL PROTECTED]
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: TextBoxes don't fire the Click event.
+
+Description of Problem:
+Classes derived from TextBoxBase do not fire the Click event even when clicked.
+
+Sample Application to show the Bug:
+using System;
+using System.Drawing;
+using System.Windows.Forms;
+
+namespace TxtBxTest {
+
+       public class TextBoxTest : Form {
+               
+               public TextBoxTest () {
+                       Label lbl = new Label ();
+                       lbl.Text = "Click Me!";
+                       lbl.Location = new Point (0, 0);
+                       lbl.Click += new EventHandler (this.lbl_Clicked);
+                       this.Controls.Add (lbl);
+                       
+                       TextBox tb = new TextBox ();
+                       tb.Location = new Point (0, 25);
+                       tb.Click += new EventHandler (this.textBox_Clicked);
+                       this.Controls.Add (tb);
+               }
+               
+               private void lbl_Clicked (object sender, EventArgs e) {
+                       MessageBox.Show ("Label was clicked");
+               }
+               
+               private void textBox_Clicked (object sender, EventArgs e) {
+                       MessageBox.Show ("TextBox was clicked");
+               }
+               
+               public static void Main ()
+               {
+                       Application.Run (new TextBoxTest ());
+               }
+       }
+}
+
+Steps to reprocude the bug:
+1. Click the TextBox.
+
+Actual Results:
+Nothing happends.
+
+Expected Results:
+A MessageBox should appear.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to