From e54c2b18849730d3aabe1ec1247a4f351dd42ad7 Mon Sep 17 00:00:00 2001 From: Carlos Alberto Cortez Date: Fri, 11 Jul 2008 20:09:17 +0000 Subject: [PATCH] 2008-07-11 Carlos Alberto Cortez * TextBox.cs: When focus is lost, if the auto complete listbox is visible, hide it. svn path=/trunk/mcs/; revision=107757 --- .../Managed.Windows.Forms/System.Windows.Forms/ChangeLog | 5 +++++ .../Managed.Windows.Forms/System.Windows.Forms/TextBox.cs | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog index c74f1e6cb19..53f8af66c8d 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog @@ -1,3 +1,8 @@ +2008-07-11 Carlos Alberto Cortez + + * TextBox.cs: When focus is lost, if the auto complete listbox is + visible, hide it. + 2008-07-11 George Giolfan * InternalWindowManager.cs: HandleSizing: Implemented a better minimum diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBox.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBox.cs index 87b72ee4203..74a54577b30 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBox.cs +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBox.cs @@ -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 -- 2.25.1