C
Chad Christensen
I am having a strange problem associated with appending to a textBox using
C# .NET. I am running another program (using the 'Process' class) and the
standard output from the other program is being redirected somewhere else
using threads so I can display it in the Multiline textBox control.
I am sucessfully capturing all the standard output text from the other
program, but when I try to append text to the textBox control using the
AppendText() method, it only allows 32767 characters. In other words, it
just stops appending text at 32767 characters. I have set the 'MaxLength'
variable to a very high number and it does no good. Like I said, I am using
the AppendText() method (from the TextBoxBase class) so that the textBox
scrollbar position will be at the bottom and not always reset its position
at the top (so you can see the latest output text). If I don't use the
AppendText() method, it works just fine with no limits on the amount of
text, but always resets itself to the top so you don't see the latest text,
always just the beginning text.
C# .NET. I am running another program (using the 'Process' class) and the
standard output from the other program is being redirected somewhere else
using threads so I can display it in the Multiline textBox control.
I am sucessfully capturing all the standard output text from the other
program, but when I try to append text to the textBox control using the
AppendText() method, it only allows 32767 characters. In other words, it
just stops appending text at 32767 characters. I have set the 'MaxLength'
variable to a very high number and it does no good. Like I said, I am using
the AppendText() method (from the TextBoxBase class) so that the textBox
scrollbar position will be at the bottom and not always reset its position
at the top (so you can see the latest output text). If I don't use the
AppendText() method, it works just fine with no limits on the amount of
text, but always resets itself to the top so you don't see the latest text,
always just the beginning text.