Author: toshok
Date: 2006-10-05 22:21:37 -0400 (Thu, 05 Oct 2006)
New Revision: 66326

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs
Log:
2006-10-05  Chris Toshok  <[EMAIL PROTECTED]>

        * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
        emitted, SelectedIndex should already be updated.  Fixes bug
        #78929.



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-10-06 01:31:26 UTC (rev 66325)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-10-06 02:21:37 UTC (rev 66326)
@@ -1,3 +1,9 @@
+2006-10-05  Chris Toshok  <[EMAIL PROTECTED]>
+
+       * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
+       emitted, SelectedIndex should already be updated.  Fixes bug
+       #78929.
+
 2006-10-05  Jonathan Pobst  <[EMAIL PROTECTED]>
 
        * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs      
2006-10-06 01:31:26 UTC (rev 66325)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs      
2006-10-06 02:21:37 UTC (rev 66326)
@@ -1821,8 +1821,8 @@
                                        if (vscrollbar_ctrl == null || 
!vscrollbar_ctrl.FireMouseDown (e))
                                                HideWindow ();
                                } else {
+                                       owner.SelectedIndex = index;
                                        owner.OnSelectionChangeCommitted (new 
EventArgs ());
-                                       owner.SelectedIndex = index;
                                        HideWindow ();
                                }
 

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

Reply via email to