[Mono-bugs] [Bug 78444][Nor] New - ComboBox DropDown does not move focus to its textbox in OnGotFocus()

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu May 18 12:11:00 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=78444

--- shadow/78444	2006-05-18 12:10:59.000000000 -0400
+++ shadow/78444.tmp.25436	2006-05-18 12:11:00.000000000 -0400
@@ -0,0 +1,69 @@
+Bug#: 78444
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: mkestner at ximian.com                            
+ReportedBy: atsushi at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: ComboBox DropDown does not move focus to its textbox in OnGotFocus()
+
+When ComboBox is DropDown and it receives focus by other way than clicking
+textbox, it does not move its internal focus to the text box. Thus it is
+impossible to fully control it with keyboard navigation.
+
+Steps to reproduce the problem:
+1. compile and run repro (actually anything that contains DropDown ComboBox
+and others can reproduce this bug.)
+2. move focus to the ComboBox
+3. type TAB and then SHIFT+TAB (move forward and backward).
+
+using System;
+using System.Windows.Forms;
+
+public class Test : Form
+{
+        public static void Main ()
+        {
+                Application.Run (new Test ());
+        }
+
+        public Test ()
+        {
+                ComboBox tb = new ComboBox ();
+                Console.WriteLine (tb.DrawMode);
+                Console.WriteLine (tb.ItemHeight);
+                Console.WriteLine (tb.PreferredHeight);
+                tb.ItemHeight = 30;
+                tb.Text = "sample";
+                //TextBox tb = new TextBox ();
+                tb.Top = 100;
+                tb.TabIndex = 0;
+                Controls.Add (tb);
+
+                Panel p = new Panel ();
+                Button b1 = new Button ();
+                b1.Text = "b1";
+                b1.DialogResult = DialogResult.OK;
+                Button b2 = new Button ();
+                b2.Left = 100;
+                b2.Text = "b2";
+                this.AcceptButton = b1;
+                p.Controls.Add (b1);
+                p.Controls.Add (b2);
+                Controls.Add (p);
+        }
+}
+
+
+Additional Information:
+
+It is different from bug #78346, which does not mention TextBox focus.


More information about the mono-bugs mailing list