Witam,
Walczę z pewnym problemem, planuję zrobić coś na wzór Shoutbox'a.
Bo kliknięciu Button 1 wyślij Dodaję pewien tekst z TextBox1 do pliku txt na serwerze, który wyświetlany jest w TextBox2.
Problem polega na tym, jakiej metody użyć, żeby po każdym kliknięciu wyślij, TextBoxa2 przewijał automatycznie na sam dół do ostatniej dodanej treści.
Znalazłem coś takiego
TextBox2.SelectionStart = TextBox2.Text.Length;
TextBox2.ScrollToCaret();
TextBox2.Refresh();
Jednak
Error 1 'System.Web.UI.WebControls.TextBox' does not contain a definition for 'SelectionStart' and no extension method 'SelectionStart' accepting a first argument of type 'System.Web.UI.WebControls.TextBox' could be found (are you missing a using directive or an assembly reference?)