Solved

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

Posted on 2004-09-22
6
360 Views
Last Modified: 2010-04-23
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
Comment
Question by:stromberg10
  • 5
6 Comments
 
LVL 25

Expert Comment

by:RonaldBiemans
ID: 12121594
Just set the scrollbars property of your textbox, and multiline to true
0
 
LVL 25

Expert Comment

by:RonaldBiemans
ID: 12121617
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
 
LVL 25

Expert Comment

by:RonaldBiemans
ID: 12121626
Bye the way ICQ uses a richtextbox
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 125 total points
ID: 12122602
Instead of:

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

Use:

    TextBox1.AppendText("more text" & vbCrLf)

Regards,

Idle_Mind
0
 
LVL 25

Expert Comment

by:RonaldBiemans
ID: 12122902
Ah, thanks to Idle_Minds comment I now see that I didn't read the question correctly. Sorry
0
 
LVL 25

Expert Comment

by:RonaldBiemans
ID: 12122990
you could also use the scrolltocaret method after you added a line

like textbox1.ScrollToCaret
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now