Automatic Scroll Down in VB.Net

When u make a long process in your textbox / rich textbox with VB.Net, it will appear a vertical scroll down automatically but it don’t want to scroll down automatically unless we scrroll down manually. How to prevent this happen? how to make it to scroll down automatically?
using VB.Net 02 through 2008

‘Set the cursor to the end of the textbox.
Textbox1.SelectionStart = Textbox1.TextLength

‘Scroll down to the cursor position.
Textbox1.ScrollToCaret()

The codes below will set the cursor position to the textbox at the beginning of the text/control.
‘Set the cursor to the first character in the textbox which will be at the top of the control.
TextBox1.SelectionStart = 0

‘Make the textbox scroll to the actually caret postition.
TextBox1.ScrollToCaret()

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s