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?
 
Mike TomlinsonMiddle 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
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

 
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.