From dc311bb43bdcc85cd36a4cd987960624182ceeec Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Mon, 9 Oct 2006 14:49:14 +0000 Subject: [PATCH] * TextBoxBase.cs: Set the default max values to MaxValue since we use the scrollbar for autoscrolling and the default value is 100. If we don't do this the caret won't keep up with typing after about 18 characters. svn path=/trunk/mcs/; revision=66462 --- mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog | 7 +++++++ .../Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs | 2 ++ 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 43b4a8215d8..d5e1c8f4728 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog @@ -1,3 +1,10 @@ +2006-10-09 Jackson Harper + + * TextBoxBase.cs: Set the default max values to MaxValue since + we use the scrollbar for autoscrolling and the default value is + 100. If we don't do this the caret won't keep up with typing + after about 18 characters. + 2006-10-07 Andreia Gaita * Form.cs: The active control should be selected after the OnLoad so that any child control initialization that affects 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 07566706368..1088a898853 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs @@ -121,12 +121,14 @@ namespace System.Windows.Forms { hscroll.control_style &= ~ControlStyles.Selectable; hscroll.Enabled = false; hscroll.Visible = false; + hscroll.Maximum = Int32.MaxValue; vscroll = new ImplicitVScrollBar(); vscroll.ValueChanged += new EventHandler(vscroll_ValueChanged); vscroll.control_style &= ~ControlStyles.Selectable; vscroll.Enabled = false; vscroll.Visible = false; + vscroll.Maximum = Int32.MaxValue; SuspendLayout (); this.Controls.AddImplicit (hscroll); -- 2.11.4.GIT