|
-
Feb 14th, 2008, 01:57 AM
#1
How can one move the selected text in a RTB to the top of the RTB
I have used a RichTextBox and loaded text in it. I have searched the RTB for the text I wanted to find and have changed the color of that text. Now I would like to move the RTB box so that the selected text appears at the top of the RTB. I don't see a property that can do it so I am asking this question... How can one do this?
-
Feb 14th, 2008, 02:28 AM
#2
Re: How can one move the selected text in a RTB to the top of the RTB
-
Feb 14th, 2008, 09:58 AM
#3
Re: How can one move the selected text in a RTB to the top of the RTB
I couldn't figure out what that example is suppose to do. I put some text in a RTB, selected the text string I wanted, clicked on the command button but it didn't do anything.
-
Feb 14th, 2008, 04:57 PM
#4
Re: How can one move the selected text in a RTB to the top of the RTB
Well, If your text is already at the top of the RTB then it will do nothing...
-
Feb 14th, 2008, 06:11 PM
#5
Re: How can one move the selected text in a RTB to the top of the RTB
No, that wasn't it. I put 10 lines into the RTB and line 6 had the text in it and I selected it and pressed the button but nothing happened. Also, I made sure that the text was the same as the hard coded text in the example.
-
Feb 14th, 2008, 06:25 PM
#6
Re: How can one move the selected text in a RTB to the top of the RTB
You have to have enough text in the RTB to scroll...
10 line in the RTB when it holds 20 viewable lines is not enough...
-
Feb 14th, 2008, 06:51 PM
#7
Re: How can one move the selected text in a RTB to the top of the RTB
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|