Klogg Posted October 7, 2003 Posted October 7, 2003 I have a few questions. How can I make the scroll bar on a text box scroll down to the bottom? How can I make the text start out at the bottom of a text box instead of the top and have the first text move upward as more lines of text are put in? Is it possible to change the color of a read-only text box? By the way, I'm coding in VB. Quote Take a look at my programs. Go to my web site.
*Experts* Volte Posted October 7, 2003 *Experts* Posted October 7, 2003 To scroll to bottom: TextBox1.SelectionStart = TextBox1.Text.Length TextBox1.ScrollToCaret() To make text start from the bottom you'll need to write your own buffer control from scratch, because the textbox doesn't support it. If it's not required, I wouldn't bother, as it's a lot of work. To change the color of a readonly textbox, change the BackColor and ForeColor properties accordingly. Quote
Klogg Posted October 7, 2003 Author Posted October 7, 2003 Okay, thanks. I've got it now. I guess you have to change the color and then change it back for the text box to be white instead of gray. I think I'll skip the starting at the bottom thing, since I didn't want it really bad anyway. Thanks for your quick reply! Quote Take a look at my programs. Go to my web site.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.