[Mono-bugs] [Bug 78557][Nor] New - UserControl does not pass focus to next control

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Jun 1 03:37:29 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 atsushi at ximian.com.

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

--- shadow/78557	2006-06-01 03:37:29.000000000 -0400
+++ shadow/78557.tmp.24340	2006-06-01 03:37:29.000000000 -0400
@@ -0,0 +1,73 @@
+Bug#: 78557
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com                            
+ReportedBy: atsushi at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: UserControl does not pass focus to next control
+
+Once UserControl gets focus, it handles tab key to iterate focus loop only
+inside the control itself and does not pass it to the next control.
+
+The repro code below is simplified PropertyGridTextBox:
+
+using System;
+using System.Drawing;
+using System.Windows.Forms;
+
+class PropertyGridTextBox : UserControl {
+        TextBox textbox;
+        Button dialog_button;
+
+        public PropertyGridTextBox() {
+                dialog_button = new Button();
+                textbox = new TextBox();
+
+                dialog_button.Dock = DockStyle.Right;
+                textbox.Dock = DockStyle.Fill;
+                Controls.Add(textbox);
+                Controls.Add(dialog_button);
+        }
+}
+
+class Test : Form
+{
+        public static void Main ()
+        {
+                Application.Run (new Test ());
+        }
+
+        public Test ()
+        {
+                PropertyGridTextBox tb = new PropertyGridTextBox ();
+                tb.Dock = DockStyle.Top;
+                Controls.Add (tb);
+                Button b = new Button ();
+                b.Dock = DockStyle.Bottom;
+                Controls.Add (b);
+        }
+}
+
+Press tab key around.
+
+Actual Results:
+
+It never passes focus to the button at the bottom of the form.
+
+Expected Results:
+
+It should pass focus to the button.
+
+Additional Information:
+
+It blocks correct PropertyGrid keyboard navigation implementation.


More information about the mono-bugs mailing list