|
-
Feb 9th, 2021, 05:54 PM
#5
Thread Starter
New Member
Re: How to find the last 7 words in single line richtextbox and highlight them
 Originally Posted by dday9
The stuff before and after the conditional statement are pretty straight forward. Here is some explanation on the important bits:
- Declaring the allButLast7Words will take everything except for the last 7 items in the words collection.
- Declaring the allButLast7WordsLength will get the length (plus 1 for the space separator) of each word in the words collection and then add them all up
- The rest inside the conditional statement specifies the selection and then sets the BackColor of said selection
hey tysm for the explanation.. I wonder if I can ask you one more thing and maybe you can give me the lingo I need to research...For the same app when I get to the end of the textbox line it continues to fill in the numbers I press but they are off the screen and since scroll bars are shut off I have to click into the textbox and drag to the end just to see the end of the line..The app is a fixed size and scrollbars aren't useful to me.
Is there a way to make it autoscroll to the end of the line when it is no longer in view.. I only found docs to autoscroll to the end of the rtb down to the bottom...but im a one line text box im already at the bottom lol
thanks again in advance
Tags for this Thread
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
|