How to Turn of Auto Scrolling

  • Thread starter Thread starter Guest
  • Start date Start date
In the RichTextBox Properties window, there is a setting called
ScrollBars,,,,,,,,,,set it to: NONE.
Or set it in code.
james
 
Thanks James but it still scroll .

james said:
In the RichTextBox Properties window, there is a setting called
ScrollBars,,,,,,,,,,set it to: NONE.
Or set it in code.
james
 
Yep, you are right, you have to set it in code like this:

Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles MyBase.Load

RichTextBox1.ScrollBars = RichTextBoxScrollBars.None

End Sub


Tested and works. What happens then is you can add all the text you want,
but no scrollbars ever appear. Of course if your textbox is smaller than the
amount of text that is entered, then your user will not see all of it.
james
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top