Hello,

Im using For loop to cycle trough multiline texbox with lots of text, and Mid$ function to search for keywords within that text.

I have compared the search from Windows notepad and search from my application and my is several times slower when searching the same text?

Are there any ways to improve my search algorithm or a different algorithm.

I have a subquestion too. How can i copy the selected text from textbox using CTRL + C. Not the whole texbox, only text that is selected.

Regards!