Hello and thank you for reading this post.
I have a RichTextBox. I need to select text inside for a search feature.
Easy enough... right? Well apparently from the .NET help and everything from
the net, there is nothing describing how to do a top level select that I can
find (ie like how to select or highlight programitcally like a user
highlights text from any window).
Here is my code:
//////////////////////////////////////////
resultPrint.Text = "Found";
WordList_box.SelectionBackColor = Color.Red;
WordList_box.SelectionStart = foundIndex;
WordList_box.SelectionLength = CSWordList_findBox.Text.Length;
//////////////////////////////////////////////
Thats fine, but the user cannot hit CTRL+C and copy that selection. I have
tried many variations but cannot figure out the right way.
Any ideas?
Thank you all,
Rob K