Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

Take a look at my programs. Go to my web site.
  • *Experts*
Posted

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.

Posted
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!
Take a look at my programs. Go to my web site.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...