From 559b87b6e5ef53ccf4fd6171f3ddab69abb8e0c4 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Wed, 8 Nov 2006 19:53:10 +0000 Subject: [PATCH] * TextBoxBase.cs: Only rich text box can do full line selects. svn path=/trunk/mcs/; revision=67547 --- mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog | 1 + mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog index 1aa76fb5217..07a45781a1a 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog @@ -2,6 +2,7 @@ * TextControl.cs: When combining lines carry over the line end style from the end line. + * TextBoxBase.cs: Only rich text box can do full line selects. 2006-11-07 Everaldo Canuto diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs index 6e054080e32..834110e8e2a 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs @@ -1420,7 +1420,7 @@ namespace System.Windows.Forms { #endif document.SetSelectionToCaret(true); click_mode = CaretSelection.Position; - } else { + } else if (this is RichTextBox) { #if DebugClick Console.WriteLine("Tripple Click Selecting line"); #endif @@ -1435,7 +1435,7 @@ namespace System.Windows.Forms { } click_mode = CaretSelection.Word; document.ExpandSelection(CaretSelection.Word, false); // Setting initial selection - } else { + } else if (this is RichTextBox) { click_mode = CaretSelection.Line; document.ExpandSelection(CaretSelection.Line, false); // Setting initial selection } -- 2.11.4.GIT