Reversing Text Box Scroll

Kuros

New member
Joined
Dec 15, 2008
Messages
2
Programming Experience
3-5
Hi everyone,

I would like to make a text box scroll from the bottom up, instead of top down. I cannot seem to find anything on google or the docs on how to do this.

Any help would be great.

Thanks,
Kuros
 
So you'd like to have the textbox scrolled all the way to the bottom rather than at the top when you start?

This kept the textbox scrolled to the end for me.

VB.NET:
	Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _
	Handles Button1.Click

		Me.TextBox1.AppendText(Environment.NewLine & "Appended Text")
		Me.TextBox1.SelectionStart = Me.TextBox1.Text.Length - 1
		Me.TextBox1.ScrollToCaret()
		Me.TextBox1.Select()

	End Sub
 
Not exactly...I figured out how to do that, but what I mean is I want the Text Box to function l like an IM window. New messages appear at the bottom of the window, as opposed to the top. As more and more messages are entered, older messages are pushed to the top.

-Kuros
 
Changing "Appended Text" to the message you want to be at the bottom would do that in my example.

EDIT: actually just doing the AppendText will automatically scroll to the bottom.
 
Last edited:
Back
Top