Let some texts are continually being fetched from database using a timer and those are set to a RichTextBox. The process has some similarities with some messenger progeamme.
But the problem is that I can set the scroll position at the end of the RichTextBox by
RichTextBox.SelectionStart = RichTextBox.TextLength;
But I have a few problems. First of all this code is not working when the focusr is not in the RichTextBox. And if the focus is in the RichTextBox, then whenever a new value gets append here, the cursor goes to the End. I want some application like that I can find in the messengers; i.e., if the scroll point is at the end, then the scroll will go above and otherwise it will remain in the same position.
And please let me know how I can alwyas provide some space at the bottom of the RichTextBox.
Waiting for your help.
Thanks.