Klogg Posted October 7, 2003 Posted October 7, 2003 This is probably a simple question, but I'm new to VB and not that familiar with it yet. How can I make text scroll to the left when it gets to the end of a text box instead of going off the screen and not letting the user see it unless they click the text box and press the End key? Quote Take a look at my programs. Go to my web site.
*Experts* Volte Posted October 7, 2003 *Experts* Posted October 7, 2003 It does that already... maybe I'm just misunderstanding your question? When you type to the end of a one-line textbox, the text will scroll to the left and keep the caret visible. Quote
Klogg Posted October 7, 2003 Author Posted October 7, 2003 I guess it's because this is a calculator program, and it uses buttons instead of typing to put characters in the text box. Does this mean that I have to use some command to scroll to the right every time the user clicks a button? Quote Take a look at my programs. Go to my web site.
*Experts* Volte Posted October 7, 2003 *Experts* Posted October 7, 2003 Oh. If you do the following:TextBox1.SelectionStart = TextBox1.Text.Lengthit should take you to the end. Quote
Klogg Posted October 7, 2003 Author Posted October 7, 2003 Wow, that was a quick reply. Thanks, I get it now. 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.