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
365 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

911 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

20 Experts available now in Live!

Get 1:1 Help Now