Ontani Posted March 29, 2008 Posted March 29, 2008 For some reason my textbox does not scroll to the end of its content. my code: Private Sub txtConsole_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtConsole.TextChanged txtConsole.SelectionStart = txtConsole.TextLength txtConsole.ScrollToCaret() End Sub Quote www.purevision.be :: www.devpoint.be
GrenadeFX Posted March 30, 2008 Posted March 30, 2008 For some reason my textbox does not scroll to the end of its content. my code: Private Sub txtConsole_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtConsole.TextChanged txtConsole.SelectionStart = txtConsole.TextLength txtConsole.ScrollToCaret() End Sub this is how i would do it txtConsole.SelectionStart = txtConsole.Text.Length txtConsole.SelectionLength = 0 txtConsole.ScrollToCaret() Quote
Ontani Posted March 30, 2008 Author Posted March 30, 2008 doesn't work either Quote www.purevision.be :: www.devpoint.be
GrenadeFX Posted March 30, 2008 Posted March 30, 2008 its is a richtextbox not just a textbox thats multiline? Quote
Ontani Posted March 30, 2008 Author Posted March 30, 2008 nope just a default multiline textbox (System.Windows.Forms.TextBox) Quote www.purevision.be :: www.devpoint.be
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.