2008-07-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
authorCarlos Alberto Cortez <calberto.cortez@gmail.com>
Fri, 11 Jul 2008 20:09:17 +0000 (20:09 -0000)
committerCarlos Alberto Cortez <calberto.cortez@gmail.com>
Fri, 11 Jul 2008 20:09:17 +0000 (20:09 -0000)
* TextBox.cs: When focus is lost, if the auto complete listbox is
visible, hide it.

svn path=/trunk/mcs/; revision=107757

mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBox.cs

index c74f1e6cb19970f68d563e28a854b64ca4391418..53f8af66c8d893edc25d2d7ac6c2d01f931e5a87 100644 (file)
@@ -1,3 +1,8 @@
+2008-07-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * TextBox.cs: When focus is lost, if the auto complete listbox is
+       visible, hide it.
+
 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
 
        * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
index 87b72ee420340fc1a74587336327c4c23f5a5b8b..74a54577b30ac306b9103b807a1c38a399c263ff 100644 (file)
@@ -114,6 +114,10 @@ namespace System.Windows.Forms {
                private void TextBox_LostFocus(object sender, EventArgs e) {
                        if (hide_selection)
                                document.InvalidateSelectionArea ();
+#if NET_2_0
+                       if (auto_complete_listbox.Visible)
+                               auto_complete_listbox.HideListBox (false);
+#endif
                }
 
 #if NET_2_0