How can I disable autoscrolling in richTextBox
by simultaneously enabled possibility of text selection?
Asked
Active
Viewed 1,385 times
1

Saint
- 5,397
- 22
- 63
- 107
2 Answers
2
Setting the focus to another control is the simple way.
In general, you don't want the user to see these updates at all. It tends to cause a lot of flicker while you are updating the content. The boilerplate solution that most controls provide for that is their BeginUpdate and EndUpdate methods. RichTextBox is missing them however. You can add them though with a wee bit of pinvoke. You'll find the required code in this answer.

Community
- 1
- 1

Hans Passant
- 922,412
- 146
- 1,693
- 2,536
0
Please , Make ReadOnly is true for selection text but disable for change String. Ex. : RichTextBox1.ReadOnly=True RichTextBox1.ScrollBars = RichTextBoxScrollBars.None;

Vikram Jain
- 5,498
- 1
- 19
- 31