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.

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.


Leave a Reply

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

You are commenting using your 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