• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 411
  • Last Modified:

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.
0
stromberg10
Asked:
stromberg10
  • 5
1 Solution
 
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
 
RonaldBiemansCommented:
Bye the way ICQ uses a richtextbox
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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:
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

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now