Hi All,

I have a big problem that I can reproduce in the following source (the ScrollBars properties must be equal to rtfVertical before start).

My question is :

How to avoid the scrolling ?

I would like the scrollBar to rest at the bottom position when I add some text.

thank you very much,
alouillet.


private Sub Form_Load()
Dim i as Integer

me.Show
RichTextBox1.Text = ""
' Must be in the properties :
'RichTextBox1.ScrollBars = rtfVertical ' read only
for i = 0 to 200
RichTextBox1.Text = RichTextBox1.Text + "My text " + Str(i) + vbCrLf
RichTextBox1.Refresh
RichTextBox1.SelStart = len(RichTextBox1.Text) - 1
next

End Sub