To scroll to the end of a Textbox in C# and VB.NET you can use the following snippet.
Sample C# / VB.NET
textBox1.SelectionStart = textBox1.Text.Length; textBox1.ScrollToCaret();
To scroll to the end of a Textbox in C# and VB.NET you can use the following snippet.
textBox1.SelectionStart = textBox1.Text.Length; textBox1.ScrollToCaret();
This snippet will give you the EndsWith function for Javascript.
String.prototype.endsWith = function(text) { return (this.indexOf(text) === (this.length-text.length)); };