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?
Re: How can one move the selected text in a RTB to the top of the RTB
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.
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...
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.
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...
Re: How can one move the selected text in a RTB to the top of the RTB