|
-
September 6th, 2001, 08:13 AM
#1
Richtextbox : how to avoid scrolling
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|