How do I make a textbox with a scrollbar scroll down automaticly when the text get's bigger?

How do I make a textbox with a scrollbar scroll down automaticly when the text get's bigger. Like in ICQ or other messengers.
stromberg10Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Mike TomlinsonConnect With a Mentor Middle School Assistant TeacherCommented:
Instead of:

    TextBox1.Text = TextBox1.Text & "more text" & vbCrLf

Use:

    TextBox1.AppendText("more text" & vbCrLf)

Regards,

Idle_Mind
0
 
RonaldBiemansCommented:
Just set the scrollbars property of your textbox, and multiline to true
0
 
RonaldBiemansCommented:
or use a richtextbox and set the scrollbars property to both, the difference between this and the textbox is in the textbox the scrollbars are fixed where as in the richtextbox they are dynamic
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
RonaldBiemansCommented:
Bye the way ICQ uses a richtextbox
0
 
RonaldBiemansCommented:
Ah, thanks to Idle_Minds comment I now see that I didn't read the question correctly. Sorry
0
 
RonaldBiemansCommented:
you could also use the scrolltocaret method after you added a line

like textbox1.ScrollToCaret
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.