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.