Hi,
I'm using a TextBox to provide output from a process that a utility i'm writing runs. Now i thought this would be a simple case of calling the AppendText method each time a new message was ready to disply. But no. For the first 1000 or so message all it fine, but then after a certain point it stops adding more messages. No exception is thrown and the program is still running. It simply seems to get to a limit, which i have found to be 29687 characters and adds nothing more. Now i have checked the MaxLength property and that is fine, set it to 100,000 or 0 and the same thing happens.
What is odd though is if i do:
Then is appears to hit no limit at all.
However the only problem with this method is that it does not scroll the text box down as happens with AppendText.
If you can tell me how to force the TextBox to scroll down (ScrollToCarat) does not appear to work, then that would help.
Otherwise, what on earth is wrong with AppendText?
Thanks in advance
Dafydd
I'm using a TextBox to provide output from a process that a utility i'm writing runs. Now i thought this would be a simple case of calling the AppendText method each time a new message was ready to disply. But no. For the first 1000 or so message all it fine, but then after a certain point it stops adding more messages. No exception is thrown and the program is still running. It simply seems to get to a limit, which i have found to be 29687 characters and adds nothing more. Now i have checked the MaxLength property and that is fine, set it to 100,000 or 0 and the same thing happens.
What is odd though is if i do:
Code:
this._txt_Output.Text += newMessage;
Then is appears to hit no limit at all.
However the only problem with this method is that it does not scroll the text box down as happens with AppendText.
If you can tell me how to force the TextBox to scroll down (ScrollToCarat) does not appear to work, then that would help.
Otherwise, what on earth is wrong with AppendText?
Thanks in advance
Dafydd