scroll bars in labels

I am working on a project that needs a rich text box to scroll up and down when to see all the text. I know how to use the text box syntax
TextBox1.SelectAll()
        TextBox1.SelectionStart = TextBox1.SelectionLength
       
But I am working with a lable and I'm getting the  error Select all is not a member of label....

What is the syntax for a rich text box for scrolling?

Thanks
itcoptAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mike TomlinsonMiddle School Assistant TeacherCommented:
Might I be the first to say, eh?!

You are right, there are no Select() methods for a Label since a Label is not editable.  What does a Label have to do with Scrolling a RichTextBox?

If you want to make a "scrollable label" then place a Panel on your form and set its AutoScroll Property to True.  Then place the Label inside the Panel and set its location to 0,0.  If the label is larger than the panel, scrollbars will appear.

What exactly do you need to do with the RichTextBox though?  Explain more and perhaps we can help.

~IM

0
itcoptAuthor Commented:
It is a label only. not rich textbox
This is a calculator with a scrolling tape.
I need the label to scroll down when the lable is full

thanks
0
Mike TomlinsonMiddle School Assistant TeacherCommented:
You can't scroll a label unless you place it in a Panel as I described above.

In the Calculator app I gave you, I demonstrated how to use a TextBox as a continuos scrolling text area.  You just set the MultiLine property to True, the ScrollBars property to Vertical, the ReadOnly property to True, and then use then the .AppendText() method to add things to the end of it and have the TextBox automatically scroll to the bottom.

~IM
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Mike TomlinsonMiddle School Assistant TeacherCommented:
Just for reference and future views of this thread, the app in question is here:
http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/VB_DOT_NET/Q_21189731.html

~IM
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.