1.

Solve : VB .NET 2010: Auto Scroll to Bottom?

Answer»

Could somebody PLEASE explain to me how to make a MultiLine textbox scroll to the bottom automatically? I am using VB .NET 2010. I just can't figure it out.

%FLEEXYSet the selection start to the end of the textbox and USE the ScrollToCaret() method:

Code: [SELECT]textBox1.SelectionStart=textBox1.Text.Length
textBox1.ScrollToCaret()
You could do other things as WELL, such as saving the original caret position or any selections that were made, depending on when you are triggering this CHANGE and how you are using the textbox.



Discussion

No Comment Found