Author: mkestner
Date: 2006-09-11 13:25:18 -0400 (Mon, 11 Sep 2006)
New Revision: 65244

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs
Log:

2006-09-11  Mike Kestner  <[EMAIL PROTECTED]>

        * ComboBox.cs: if we are updating the contents of the currently
        selected index, refresh the control or the textbox selection.
        [Fixes #79066]


Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-09-11 17:15:07 UTC (rev 65243)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-09-11 17:25:18 UTC (rev 65244)
@@ -1,5 +1,11 @@
 2006-09-11  Mike Kestner  <[EMAIL PROTECTED]>
 
+       * ComboBox.cs: if we are updating the contents of the currently
+       selected index, refresh the control or the textbox selection.
+       [Fixes #79066]
+
+2006-09-11  Mike Kestner  <[EMAIL PROTECTED]>
+
        * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
        the 'specified' logic has been moved there.  This seems like a bug 
        in Control.cs, since our current SetBoundsCore completely ignores 

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs      
2006-09-11 17:15:07 UTC (rev 65243)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs      
2006-09-11 17:25:18 UTC (rev 65244)
@@ -1275,6 +1275,12 @@
                                        object_items[index] = value;
                                        if (owner.listbox_ctrl != null)
                                                
owner.listbox_ctrl.InvalidateItem (index);
+                                       if (index == owner.SelectedIndex) {
+                                               if (owner.textbox_ctrl == null)
+                                                       owner.Refresh ();
+                                               else
+                                                       
owner.textbox_ctrl.SelectedText = value.ToString ();
+                                       }
                                }
                        }
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to