D
DalePres
Still no answer to this question, but since I originally posted it, I have
created a separate application for test and verified the operation is just
like I state here. The code for the test is at the bottom.
By default, the MaxLength for a multi-line TextBox is supposed to be
4294967295 characters in all the NT based OS's and 65535 in the 9x based
OS's.
I have an application where I use a multi-line textbox (or tried to use a
textbox but gave up) on Windows XP. The textbox is used for displaying
application log information and grows fairly rapidly. The problem is that
once the contents length gets to 32767, it never gets any longer, even
though I have set MaxLength to 250000.
When I substitute a RichTextBox in the same application with no other
changes in code other than the type, the app works fine and the RichTextBox
stores up to 250000 characters.
Is this a known bug in the version 1.1 framework or is there something I may
be missing?
Thanks for your input,
Dale
private void fillText_Click(object sender, System.EventArgs e)
{
for (int count = 0; count < int.Parse(textBox2.Text); count++)
{
textBox1.AppendText("Here is another line of text; How many will it hold?" +
(char)13 + (char)10);
label1.Text = textBox1.Text.Length.ToString();
}
}
Another interesting question is why do I have to use (char)13 + (char)10?
Adding "\n" at the end of my text string leaves two square boxes at the end
of the string but doesn't start a new line. "\r\n" starts a new line but
leaves two square boxes at the end of each line; only (char)13 + (char)10
gives a clean new line operation.
created a separate application for test and verified the operation is just
like I state here. The code for the test is at the bottom.
By default, the MaxLength for a multi-line TextBox is supposed to be
4294967295 characters in all the NT based OS's and 65535 in the 9x based
OS's.
I have an application where I use a multi-line textbox (or tried to use a
textbox but gave up) on Windows XP. The textbox is used for displaying
application log information and grows fairly rapidly. The problem is that
once the contents length gets to 32767, it never gets any longer, even
though I have set MaxLength to 250000.
When I substitute a RichTextBox in the same application with no other
changes in code other than the type, the app works fine and the RichTextBox
stores up to 250000 characters.
Is this a known bug in the version 1.1 framework or is there something I may
be missing?
Thanks for your input,
Dale
private void fillText_Click(object sender, System.EventArgs e)
{
for (int count = 0; count < int.Parse(textBox2.Text); count++)
{
textBox1.AppendText("Here is another line of text; How many will it hold?" +
(char)13 + (char)10);
label1.Text = textBox1.Text.Length.ToString();
}
}
Another interesting question is why do I have to use (char)13 + (char)10?
Adding "\n" at the end of my text string leaves two square boxes at the end
of the string but doesn't start a new line. "\r\n" starts a new line but
leaves two square boxes at the end of each line; only (char)13 + (char)10
gives a clean new line operation.